joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415121
Capabilities:
Terminate process

Disassembly:
push 8
push 0x422828
call fcn.00412374
push 8
call fcn.004144a7
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x428b2c], esi
jne 0x415155
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x428b28], esi
mov al, byte [ebp + 0x10]
mov byte [0x428b24], al
cmp dword [ebp + 0xc], edi
jne 0x41519f
cmp dword [0x42a1a8], edi
je 0x41518f
mov eax, dword [0x42a1a4]
sub eax, 4
mov dword [0x42a1a4], eax
cmp eax, dword [0x42a1a8]
jb 0x41518f
mov eax, dword [eax]
cmp eax, edi
je 0x415170
call eax
jmp 0x415170
push 0x42703c
mov eax, 0x427034
call fcn.0041509f
pop ecx
push 0x427048
mov eax, 0x427040
call fcn.0041509f
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4151d0
cmp dword [ebp + 0x10], edi
jne 0x4151de
mov dword [0x428b2c], esi
push dword [ebp + 8]
call fcn.0041505d
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4151dd
push 8
call fcn.004143f2
pop ecx
ret
call fcn.004123af
ret

Function at 0x4192a6
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x427770]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x427eb8]
je 0x4192db
inc eax
cmp eax, 0x13
jb 0x4192cc
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x427eb8]
jne 0x419401
mov eax, dword [0x428940]
cmp eax, 1
je 0x4193d9
cmp eax, edx
jne 0x41930b
cmp dword [0x427764], 1
je 0x4193d9
cmp ecx, 0xfc
je 0x419401
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x419341
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0041aa40
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00417fc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x419375
mov eax, edi
push eax
call fcn.00417fc0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4234d8
push edi
call fcn.00413730
add esp, 0x10
push edi
call fcn.00417fc0
push dword [esi + 0x427ebc]
mov ebx, eax
call fcn.00417fc0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00412ce0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041aa40
push edi
push ebx
call fcn.0041aa50
push 0x4234b8
push ebx
call fcn.0041aa50
push dword [esi + 0x427ebc]
push ebx
call fcn.0041aa50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041bf75
add esp, 0x2c
jmp 0x419401
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x427ebc]
push dword [esi]
call fcn.00417fc0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0041404e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41a1a4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x427770]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x41a1d5
xor eax, eax
jmp 0x41a35e
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x428e40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41a211
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041c3db
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41a2ec
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41a32a
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x41a275
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41a266
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x41a246
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a2b5
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41a2be
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41a237
jmp 0x41a2c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41a359
cmp dword [ebp - 0x6c], edi
je 0x41a32a
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41a31f
call fcn.00419edd
mov dword [eax], 9
call fcn.00419ee6
mov dword [eax], esi
jmp 0x41a354
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a314
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41a2c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41a2c0
push dword [ebp - 0x6c]
call fcn.00419eef
pop ecx
jmp 0x41a354
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41a342
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41a342
xor eax, eax
jmp 0x41a35c
call fcn.00419edd
mov dword [eax], 0x1c
call fcn.00419ee6
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41a35c
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0041404e
add ebp, 0x3a0
leave
ret
Function at 0x41bf75
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x428de4], ebx
push esi
push edi
jne 0x41bff5
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41c030
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x423930
push edi
call esi
test eax, eax
mov dword [0x428de4], eax
je 0x41c030
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x428de8], eax
call esi
cmp dword [0x428aec], 2
mov dword [0x428dec], eax
jne 0x41bff5
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x428df4], eax
je 0x41bff5
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x428df0], eax
mov eax, dword [0x428df0]
test eax, eax
je 0x41c03a
call eax
test eax, eax
je 0x41c021
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x428df4]
test eax, eax
je 0x41c021
test byte [ebp - 8], 1
jne 0x41c03a
cmp dword [0x428af8], 4
jb 0x41c034
or byte [ebp + 0x12], 0x20
jmp 0x41c059
xor eax, eax
jmp 0x41c069
or byte [ebp + 0x12], 4
jmp 0x41c059
mov eax, dword [0x428de8]
test eax, eax
je 0x41c059
call eax
mov ebx, eax
test ebx, ebx
je 0x41c059
mov eax, dword [0x428dec]
test eax, eax
je 0x41c059
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x428de4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ccd8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41ceac
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x428e40]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41ceac
test cl, 0x48
je 0x41cd43
cmp byte [eax + 5], 0xa
je 0x41cd43
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41cd95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41cd7d
call fcn.00419edd
mov dword [eax], 9
call fcn.00419ee6
mov dword [eax], esi
jmp 0x41cd8d
cmp eax, 0x6d
je 0x41ceac
push eax
call fcn.00419eef
pop ecx
or eax, 0xffffffff
jmp 0x41ceae
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41cea7
test eax, eax
je 0x41cdbc
cmp byte [ebx], 0xa
jne 0x41cdbc
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41cdc5
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41cea1
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41ce91
cmp al, 0xd
je 0x41cdf7
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41ce83
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41ce11
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41ce0c
add dword [ebp + 0x10], 2
jmp 0x41ce65
mov dword [ebp + 0x10], eax
jmp 0x41ce7f
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41ce39
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41ce7f
cmp dword [ebp - 0xc], 0
je 0x41ce7f
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41ce5a
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41ce65
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41ce82
cmp ebx, dword [ebp + 0xc]
jne 0x41ce6a
cmp byte [ebp - 1], 0xa
jne 0x41ce6a
mov byte [ebx], 0xa
jmp 0x41ce82
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a085
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41ce83
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41cddb
jmp 0x41cea1
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41cea1
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41ceae
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41db6d
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x41db86
or eax, 0xffffffff
jmp 0x41dbe7
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x41dbe3
push 0x3d
push esi
call fcn.0041df1c
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41dbe3
cmp esi, eax
je 0x41dbe3
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x428b0c]
sete cl
cmp eax, dword [0x428b10]
mov dword [ebp - 8], ecx
jne 0x41dbc9
mov edi, eax
call fcn.0041db0c
mov dword [0x428b0c], eax
cmp eax, ebx
jne 0x41dc22
cmp dword [ebp + 0xc], ebx
je 0x41dbeb
cmp dword [0x428b14], ebx
je 0x41dbeb
call fcn.0041cfac
test eax, eax
je 0x41dc22
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x41dbf4
xor eax, eax
jmp 0x41dbe6
push 4
call fcn.00412cc0
cmp eax, ebx
pop ecx
mov dword [0x428b0c], eax
je 0x41dbe3
mov dword [eax], ebx
cmp dword [0x428b14], ebx
jne 0x41dc22
push 4
call fcn.00412cc0
cmp eax, ebx
pop ecx
mov dword [0x428b14], eax
je 0x41dbe3
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x428b0c]
call fcn.0041dabf
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x41dc83
cmp dword [esi], ebx
je 0x41dc83
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004124c9
cmp dword [ebp - 8], ebx
pop ecx
jne 0x41dc66
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x41dcc4
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x41dc5d
mov eax, edi
shl eax, 2
push eax
push dword [0x428b0c]
call fcn.00412e05
cmp eax, ebx
pop ecx
pop ecx
je 0x41dcc4
jmp 0x41dcbf
cmp dword [ebp - 8], ebx
jne 0x41dd2f
cmp edi, ebx
jge 0x41dc92
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x428b0c]
call fcn.00412e05
cmp eax, ebx
pop ecx
pop ecx
je 0x41dbe3
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x428b0c], eax
cmp dword [ebp + 0xc], ebx
je 0x41dd19
push dword [ebp - 4]
call fcn.00417fc0
inc eax
inc eax
push eax
call fcn.00412cc0
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x41dd19
push dword [ebp - 4]
push esi
call fcn.0041aa40
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41dd12
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004124c9
pop ecx
cmp dword [ebp - 8], ebx
je 0x41dd27
push dword [ebp - 4]
call fcn.004124c9
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41dbe6
push dword [ebp - 4]
call fcn.004124c9
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x41dbf0
Function at 0x78ab07a7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x78b53610]
jne sym.MSVCR100.dll___report_gsfailure
repz ret

Function at 0x78ab203f
Capabilities:
Accept command line arguments
Get thread local storage value

Disassembly:
push 8
push 0x78ab20e0
call fcn.78ab0c80
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x78abb235
xor edi, edi
cmp eax, edi
je 0x78ac8065
cmp eax, 2
jne 0x78ab25a7
call sym.MSVCR100.dll___set_flsgetvalue
push dword [0x78b538b4]
push dword [0x78b538b8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
test eax, eax
jne 0x78ab20d1
push 0x214
push 1
call sym.MSVCR100.dll__calloc_crt
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x78ac80ab
push esi
push dword [0x78b538b4]
push dword [0x78b53e58]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
call eax
test eax, eax
je 0x78ad7484
push edi
push esi
call sym.MSVCR100.dll__initptd
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
call fcn.78ab2038
xor eax, eax
inc eax
call fcn.78ab0cc5
ret
cmp eax, 3
jne 0x78ab20d1
push edi
call fcn.78ab2539
pop ecx
jmp 0x78ab20d1
call fcn.78abad05
test eax, eax
je 0x78ac80ab
call fcn.78abb398
test eax, eax
je 0x78ad7437
call fcn.78abad86
test eax, eax
js 0x78ad7441
call fcn.78abaeae
mov dword [0x78b54470], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [sym.MSVCR100.dll__acmdln], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [sym.MSVCR100.dll__wcmdln], eax
call fcn.78abb22a
call fcn.78abb2a9
test eax, eax
js 0x78ac80b2
push 0
call fcn.78abb976
pop ecx
test eax, eax
jne 0x78ac80b2
inc dword [0x78b5446c]
jmp 0x78ab20d1
cmp dword [0x78b5446c], edi
jle 0x78ac80ab
dec dword [0x78b5446c]
mov dword [ebp - 4], edi
cmp dword [0x78b54eb4], edi
je 0x78ad7448
call fcn.78ac7ffb
cmp dword [ebp + 0xc], edi
je 0x78ad7452
mov dword [ebp - 4], 0xfffffffe
call fcn.78ac80a1
jmp 0x78ab20d1
xor eax, eax
jmp 0x78ab20d9
call fcn.78b26ca8
jmp 0x78ad7441
call fcn.78b265ea
jmp 0x78ac80ab
call fcn.78afc86f
jmp 0x78ad7437
call sym.MSVCR100.dll__cexit
jmp 0x78ac8082
call fcn.78b26ca8
call fcn.78afc86f
call fcn.78b265ea
jmp 0x78ac8090
push esi
call sym.MSVCR100.dll_free
pop ecx
jmp 0x78ac80ab

Function at 0x78ab27b6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x78ad7b05
test dword [ebp + 0xc], 0xfffffff9
jne 0x78ad7b05
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x78abfa08
test al, 0x10
jne 0x78ab27f8
test al, 1
je 0x78ab27f8
test byte [ebp + 0xc], 2
jne 0x78ad7b22
xor eax, eax
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.MSVCR100.dll__dosmaperr
pop ecx
call sym.MSVCR100.dll__errno
mov eax, dword [eax]
jmp 0x78ab27fa
call sym.MSVCR100.dll___doserrno
mov dword [eax], esi
call sym.MSVCR100.dll__errno
push 0x16
pop esi
mov dword [eax], esi
call sym.MSVCR100.dll__invalid_parameter_noinfo
mov eax, esi
jmp 0x78ab27fa
call sym.MSVCR100.dll___doserrno
mov dword [eax], 5
call sym.MSVCR100.dll__errno
mov dword [eax], 0xd
jmp 0x78abfa15
Function at 0x78ab7270
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call sym.MSVCR100.dll__getptd
lea edi, [eax + 0x9c]
mov eax, dword [ebp + 8]
test eax, eax
je 0x78ae17b4
mov dword [edi], eax
add eax, 0x40
lea ebx, [edi + 4]
mov dword [ebx], eax
je 0x78ab72a3
cmp byte [eax], 0
jne 0x78ae17c0
mov eax, dword [edi]
and dword [edi + 8], 0
test eax, eax
je 0x78ab72b6
cmp byte [eax], 0
jne 0x78ae17d5
mov ebx, dword [ebx]
test ebx, ebx
je 0x78ab72c5
cmp byte [ebx], 0
jne 0x78ae1835
mov dword [edi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
cmp dword [edi + 8], 0
je 0x78ab73b0
mov esi, dword [ebp + 8]
mov eax, esi
sub eax, 0xffffff80
neg esi
sbb esi, esi
and esi, eax
call fcn.78ab73b4
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x78ab73b0
cmp esi, 0xfde8
je 0x78ab73b0
cmp esi, 0xfde9
je 0x78ab73b0
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x78ab73b0
push 1
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x78ab73b0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x78ab7355
mov cx, word [edi + 0x18]
mov word [eax], cx
mov cx, word [edi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], si
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x78ab73a8
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, 0x814
cmp word [eax], cx
je 0x78ae1867
push 0x40
push ebx
push 0x1001
push dword [edi + 0x18]
call esi
test eax, eax
je 0x78ab73b0
push 0x40
lea eax, [ebx + 0x40]
push eax
push 0x1002
push dword [edi + 0x1c]
call esi
test eax, eax
je 0x78ab73b0
push 0xa
push 0x10
sub ebx, 0xffffff80
push ebx
push dword [ebp + 8]
call sym.MSVCR100.dll__itoa_s
add esp, 0x10
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x78ab73ab
or dword [edi + 8], 0x104
jmp 0x78ab72cc
push ebx
push 0x16
push 0x78ae1a98
call fcn.78b2ee72
add esp, 0xc
jmp 0x78ab72a3
mov eax, dword [ebx]
test eax, eax
je 0x78ae17e9
cmp byte [eax], 0
je 0x78ae17e9
mov esi, edi
call fcn.78b2f2ef
jmp 0x78ae17f0
mov esi, edi
call fcn.78b2f356
cmp dword [edi + 8], 0
jne 0x78ab72e2
push edi
push 0x40
push 0x78ae1890
call fcn.78b2ee72
add esp, 0xc
test eax, eax
je 0x78ab72d8
mov ebx, dword [ebx]
test ebx, ebx
je 0x78ae1829
cmp byte [ebx], 0
je 0x78ae1829
mov esi, edi
call fcn.78b2f2ef
jmp 0x78ab72d8
mov esi, edi
call fcn.78b2f356
jmp 0x78ab72d8
push ebx
call sym.MSVCR100.dll_strlen
sub eax, 3
neg eax
pop ecx
sbb eax, eax
push 1
inc eax
push 0x78b2ef5c
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [edi + 8], 4
jne 0x78ab72d8
and dword [edi + 8], 0
jmp 0x78ab72d8
push 0x78ae1b50
push 0x40
push ebx
call sym.MSVCR100.dll_strcpy_s
add esp, 0xc
test eax, eax
je 0x78ab7381
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call sym.MSVCR100.dll__invoke_watson
int3
Function at 0x78ab73b4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
test esi, esi
je 0x78ab73c7
cmp byte [esi], 0
jne 0x78ac2c16
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x78ae17a4
cmp dword [ebp - 4], 0
je 0x78ae17a8
mov eax, dword [ebp - 4]
leave
ret
push 0x78ac2c30
push esi
call sym.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x78ab73c7
jmp 0x78ae1766
push 0x78ae17b0
push esi
call sym.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x78ae1795
push 2
lea eax, [ebp - 4]
push eax
push 0x2000000b
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x78ab73ed
jmp 0x78ae17a4
push esi
call sym.MSVCR100.dll_atol
pop ecx
mov dword [ebp - 4], eax
jmp 0x78ab73ed
xor eax, eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetACP]
leave
ret
Function at 0x78ab767a
Capabilities:
Get geographical location

Disassembly:
cmp dword [ebp + 0xc], 0
jne 0x78ab744c
and dword [ebp - 0x88], 0
push 2
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x20000000
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x78ab744c
mov al, byte [ebp - 0x88]
mov byte [edi], al
jmp 0x78ab76f6
or eax, 0xffffffff
jmp 0x78ab76f8
push dword [edi]
call sym.MSVCR100.dll_free
jmp 0x78ae06f6
and dword [ebp - 0x8c], 0
push 0x80
lea ebx, [ebp - 0x84]
mov ecx, ebx
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.78ab75d7
mov esi, eax
add esp, 0x14
test esi, esi
je 0x78ae0654
push 1
push esi
call sym.MSVCR100.dll__calloc_crt
mov dword [edi], eax
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x78ae06c8
lea ecx, [esi - 1]
push ecx
push ebx
push esi
push eax
call sym.MSVCR100.dll_strncpy_s
add esp, 0x10
test eax, eax
jne 0x78ae06ec
cmp dword [ebp - 0x8c], edi
je 0x78ab76f6
jmp 0x78ae06e0
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x78b53610]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x88], eax
je 0x78ab760e
cmp dword [ebp + 0xc], 2
jne 0x78ab7413
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
push eax
push eax
push dword [ebp + 0x14]
mov dword [edi], eax
push dword [ebp + 0x10]
call esi
mov ebx, eax
test ebx, ebx
je 0x78ab7454
push 2
push ebx
call sym.MSVCR100.dll__calloc_crt
pop ecx
pop ecx
mov dword [edi], eax
test eax, eax
je 0x78ab7454
push ebx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call esi
test eax, eax
je 0x78ab7454
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.78ab07a7
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x78ab744c
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.78ab75d7
add esp, 0x14
mov dword [ebp - 0x90], eax
test eax, eax
je 0x78ab744c
inc esi
push esi
push eax
call sym.MSVCR100.dll__calloc_crt
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x78ab744c
push dword [ebp - 0x90]
mov dword [ebp - 0x8c], esi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.78ab75d7
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x78ab763c
jmp 0x78ae06d4
cmp dword [ebp - 0x8c], edi
je 0x78ab744c
push ebx
call sym.MSVCR100.dll_free
pop ecx
jmp 0x78ab744c
push ebx
call sym.MSVCR100.dll_free
pop ecx
jmp 0x78ab76f6
push edi
push edi
push edi
push edi
push edi
call sym.MSVCR100.dll__invoke_watson
and dword [edi], 0
pop ecx
jmp 0x78ab744c
Function at 0x78abaeae
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x78ae0703
cmp word [ebx], si
je 0x78abaedf
add eax, 2
cmp word [eax], si
jne 0x78abaecf
add eax, 2
cmp word [eax], si
jne 0x78abaecf
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
sub eax, ebx
push esi
sar eax, 1
inc eax
push eax
push ebx
push esi
push esi
mov dword [ebp - 0xc], eax
call edi
mov dword [ebp - 8], eax
cmp eax, esi
je 0x78abaf32
push eax
call sym.MSVCR100.dll__malloc_crt
pop ecx
mov dword [ebp - 4], eax
cmp eax, esi
je 0x78abaf32
push esi
push esi
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push ebx
push esi
push esi
call edi
test eax, eax
je 0x78ae070a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x78ae071b
xor eax, eax
jmp 0x78abaf2e
push dword [ebp - 4]
call sym.MSVCR100.dll_free
pop ecx
mov dword [ebp - 4], esi
jmp 0x78abaf23
xor eax, eax
jmp 0x78abaf2d