joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov eax, 0x400
mov ebp, esp
push esi
mov edx, 0xa
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
movzx ecx, si
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword [0x412880]
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x40215b
mov dword [esp + 4], eax
mov edx, dword [0x412880]
mov dword [esp], edx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x402170
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x402170
xor edx, edx
mov esi, esi
lea edi, [edi]
movzx eax, byte [edx + ecx]
mov byte [edx + ebx], al
inc edx
test al, al
jne 0x402130
mov ecx, dword [0x40a028]
test ecx, ecx
je 0x40214f
mov eax, dword [0x40a090]
test eax, eax
jne 0x402179
mov eax, 1
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebx], 0
sub esp, 4
lea esi, [esi]
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 0xc], ebx
mov ebx, str.Resource__d:_t_s_n
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, 1
jmp 0x402154

Function at 0x4021a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
cld
mov ecx, 5
push esi
lea edi, [ebp - 0x38]
push ebx
sub esp, 0x4c
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 8]
mov ecx, 0x400
mov edi, 0xa
mov dword [esp + 0xc], ecx
lea ebx, [ebp - 0x38]
mov dword [esp + 4], edi
movzx edx, si
mov dword [esp + 8], edx
mov eax, dword [0x412880]
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x40227d
mov dword [esp + 4], eax
mov edx, dword [0x412880]
mov dword [esp], edx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x402260
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x402260
xor edx, edx
lea esi, [esi]
movzx eax, byte [edx + ecx]
mov byte [edx + ebx], al
inc edx
test al, al
jne 0x402220
mov ecx, dword [0x40a028]
test ecx, ecx
je 0x402260
mov eax, dword [0x40a090]
test eax, eax
je 0x402260
mov dword [esp + 8], esi
mov esi, str.Resource__d:_t_s_n
mov dword [esp + 0xc], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
nop
lea esi, [esi]
cld
mov esi, ebx
mov edi, str.true
mov ecx, 5
repe cmpsb byte [esi], byte es:[edi]
sete bl
lea esp, [ebp - 0xc]
movzx eax, bl
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0
mov esi, ebx
mov edi, str.true
call sub.KERNEL32.dll_SetLastError
mov byte [ebp - 0x38], 0
cld
mov ecx, 5
sub esp, 4
repe cmpsb byte [esi], byte es:[edi]
sete bl
lea esp, [ebp - 0xc]
movzx eax, bl
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x423959
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x423968
pop dword [ebp - 0x44]
mov eax, 0x5d263a11
add eax, 0xa31bff57
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x54905
push 0
mov eax, 0x7beb557b
sub eax, 0x7ba6a2cb
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x9c82f64b
sub ecx, 0x9c829de3
xor edi, edi
add edi, eax
mov edx, 0xe1eaae03
sub edx, 0xe1a22003
add edx, dword [ebp - 0x44]
mov esi, 0x1b88b0a5
add esi, 0x3e140cfa
xor dword [ebp - 0x18], 0xe0884572
mov ebx, dword [edx]
mov dword [ebp - 0x38], 0x6d198bc1
xor ebx, esi
sub dword [ebp - 0x3c], 0xd5bed3ac
mov dword [edi], ebx
add edi, 0xb782980f
sub edi, 0xb782980b
add edx, 0x69d4577d
sub edx, 0x69d45779
loop 0x4239c9
add eax, 0x15473
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x82de3235
sub ecx, 0x829e3235
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x10002900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10002958
cmp byte [esi + ebx - 1], 0xa
je 0x1000292c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1000a084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10002f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10003158
mov edi, dword [0x1000a084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10003067
test byte [0x10004050], 8
jne 0x10003100
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10004060], 8
jne 0x100030c0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10003009
cmp esi, 3
jbe 0x10003078
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x1000301a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10007a08]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10003009
mov dword [esp], 0x10004060
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10002fe0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10002fe0
mov dword [esp], 0x10004050
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10002fcb
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10002fd3
mov eax, 0xffffffff
jmp 0x10003067
Function at 0x10001044
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, 0x10014efc
sub byte [esi - 0x1a3], 0xd8
pop esi
jmp 0x1000107d
jmp 0x100010a4
xor eax, eax
jmp 0x10001414
call fcn.100010ab
test eax, eax
jne 0x10001422
ret
push ebp
push eax
mov eax, 0x10015143
add dword [eax - 0x3c], 0x25b5642c
xor byte [eax - 0x365], 0xf5
pop eax
push ebx
mov ebx, eax
call fcn.1000121c
sub esp, 4
push esi
pop dword [0x10014db5]
mov dword [esp], 0x35485406
add dword [esp], 0x343216f8
push eax
jmp loc.10021000

Function at 0x1000121c
Capabilities:
Access peb ldr_data

Disassembly:
push esi
jmp 0x1000123c
xor eax, eax
mov eax, dword fs:[eax + 0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
pop esi
ret

Function at 0x1000125f
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
push edx
push ecx
mov ecx, 0x10014e79
xor dword [ecx - 0x121], 0x1638db40
pop ecx
push esi
push edi
mov ebx, dword [ebp + 8]
mov ecx, ebx
add ebx, dword [ebx + 0x3c]
push dword [ebx + 0x7c]
push 0x9c830a79
pop dword [0x10014f30]
mov ebx, dword [ebx + 0x78]
add ebx, ecx
add dword [esp], ebx
push edi
mov edi, 0x10015138
xor dword [edi - 0x326], 0x411f6b3b
mov byte [edi - 0x258], 0x58
pop edi
mov edi, dword [ebx + 0x20]
add edi, ecx
xor esi, esi
lea edx, [edi + esi*4]
mov edx, dword [edx]
jmp 0x100012f4
jmp 0x1000132b
jmp 0x10001351
add edx, ecx
mov dword [ebp - 4], edx
xor eax, eax
rol eax, 7
xor al, byte [edx]
inc edx
cmp byte [edx], 0
jne 0x10001358
mov dword [0x10014d6c], edi
cmp eax, dword [ebp + 0xc]
je 0x10001380
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x100012b7
mov edx, dword [ebx + 0x24]
add edx, ecx
movzx edx, word [edx + esi*2]
push edi
mov edi, 0x10014d8f
and byte [edi + 0xfc], 0xef
mov word [edi + 0x185], 0x3fc
pop edi
mov eax, dword [ebx + 0x1c]
add eax, ecx
mov eax, dword [eax + edx*4]
add eax, ecx
pop ecx
cmp eax, ebx
jbe 0x100013fb
cmp eax, ecx
jae 0x100013fb
push edi
mov edi, 0x10014e35
sbb word [edi + 0xbf], 0x63e8
and word [edi + 0x31f], 0x6a01
pop edi
push dword [ebp - 4]
push dword [ebp + 8]
sub esp, 4
mov dword [esp], 0xeb8ed3f6
add dword [esp], 0x343216f8
push dword [ebp + 8]
call fcn.1000125f
call eax
sub dword [0x10014ed7], edi
pop edi
pop esi
push ecx
mov ecx, 0x10015162
sub dword [ecx - 0x2bf], 0x15bc800
pop ecx
pop edx
pop ebx
leave
ret 8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3d330db5
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1bc8523c
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40115d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401167
repz ret
jmp fcn.00401439

Function at 0x40199e
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40a018]
je 0x4019b9
inc edi
cmp edi, 0x17
jb 0x4019aa
cmp edi, 0x17
jae 0x401b39
push ebp
push 3
call fcn.00403ae0
cmp eax, 1
pop ecx
je 0x401b05
push 3
call fcn.00403ae0
test eax, eax
pop ecx
jne 0x4019ed
cmp dword [0x40a010], 1
je 0x401b05
cmp ebx, 0xfc
je 0x401b38
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40b040
push ebp
call fcn.00403a7b
add esp, 0xc
test eax, eax
je 0x401a23
push esi
push esi
push esi
push esi
push esi
call fcn.00402fda
add esp, 0x14
push 0x104
mov esi, 0x40b059
push esi
push 0
mov byte [0x40b15d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401a67
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00403a7b
add esp, 0xc
test eax, eax
je 0x401a67
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00402fda
add esp, 0x14
push esi
call fcn.004039f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401aac
push esi
call fcn.004039f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40b354
push 0x408714
sub ecx, eax
push ecx
push eax
call fcn.00403932
add esp, 0x14
test eax, eax
je 0x401aac
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00402fda
add esp, 0x14
jmp 0x401aae
xor esi, esi
push 0x408710
push ebx
push ebp
call fcn.004038c1
add esp, 0xc
test eax, eax
je 0x401ace
push esi
push esi
push esi
push esi
push esi
call fcn.00402fda
add esp, 0x14
push dword [edi*8 + 0x40a01c]
push ebx
push ebp
call fcn.004038c1
add esp, 0xc
test eax, eax
je 0x401af0
push esi
push esi
push esi
push esi
push esi
call fcn.00402fda
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00403704
add esp, 0xc
jmp 0x401b38
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x401b38
cmp ebp, 0xffffffff
je 0x401b38
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40a01c]
push dword [esi]
call fcn.004039f0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x403704
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004024f6
xor ebx, ebx
cmp dword [0x40b600], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4037da
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4038ba
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4038ba
push eax
call fcn.00402488
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b600], eax
call esi
push eax
call fcn.00402488
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b604], eax
call esi
push eax
call fcn.00402488
mov dword [0x40b608], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040172b
test eax, eax
pop ecx
pop ecx
je 0x4037a8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402fda
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4037da
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00402488
cmp eax, ebx
pop ecx
mov dword [0x40b610], eax
je 0x4037da
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402488
pop ecx
mov dword [0x40b60c], eax
mov eax, dword [0x40b60c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40385f
cmp dword [0x40b610], ecx
je 0x40385f
push eax
call fcn.004024ff
push dword [0x40b610]
mov esi, eax
call fcn.004024ff
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40385f
cmp edi, ebx
je 0x40385f
call esi
cmp eax, ebx
je 0x40382c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40382c
test byte [ebp - 0x18], 1
jne 0x40385f
lea eax, [ebp - 0x10]
push eax
call fcn.00401762
test eax, eax
pop ecx
je 0x403847
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402fda
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x403856
or dword [ebp + 0x10], 0x200000
jmp 0x40389a
or dword [ebp + 0x10], 0x40000
jmp 0x40389a
mov eax, dword [0x40b604]
cmp eax, dword [ebp - 8]
je 0x40389a
push eax
call fcn.004024ff
cmp eax, ebx
pop ecx
je 0x40389a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40389a
mov eax, dword [0x40b608]
cmp eax, dword [ebp - 8]
je 0x40389a
push eax
call fcn.004024ff
cmp eax, ebx
pop ecx
je 0x40389a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b600]
call fcn.004024ff
cmp eax, ebx
pop ecx
je 0x4038ba
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4038bc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401020
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov ebx, dword [eax]
call sym.___p___argv
mov esi, dword [eax]
call sym.__get_initial_narrow_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dbg.main
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x4018e0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410e12
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x417160]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0xac], ecx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ecx
mov dword [ebp - 0xb0], edi
mov byte [edi], cl
mov ebx, dword [eax + 0x10]
mov edx, 0x10
mov dword [ebp - 4], ecx
mov dword [ebp - 0xac], 1
mov dword [ebp - 0xa8], edx
cmp dword [eax + 0x14], edx
jb 0x401952
mov esi, dword [eax]
jmp 0x401954
mov esi, eax
push 0xf0000020
push 1
push ecx
push ecx
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x401a29
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa0]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x401a20
mov eax, dword [ebp - 0xa0]
push 0
push ebx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x401a17
mov eax, dword [ebp - 0xa0]
push 0
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x9c]
push edx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x401a0e
xor esi, esi
movzx ecx, byte [ebp + esi - 0x9c]
push ecx
lea edx, [ebp - 0x1c]
push str._02x
push edx
call fcn.004063e1
lea eax, [ebp - 0x1c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4019f1
sub eax, edx
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.00401380
inc esi
cmp esi, 0x10
jl 0x4019d1
jmp 0x401a37
push 0x18
push str.Error_getting_hash_param
jmp 0x401a30
push 0x12
push str.Error_hashing_data
jmp 0x401a30
push 0x13
push str.Error_creating_hash
jmp 0x401a30
push 0x17
push str.Error_acquiring_context
mov ecx, edi
call fcn.00401760
mov ecx, dword [ebp - 0xa0]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 0xa4]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405ec1
mov esp, ebp
pop ebp
ret
Function at 0x404a60
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411270
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x417160]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
cmp dword [esi], edi
je 0x404ab3
push 0x41570c
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 1
call fcn.00405a91
lea ecx, [ebp - 0x18]
push ecx
push 0x412ce8
push 1
push edi
push 0x412cd8
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jge 0x404ae3
push 0x41570c
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], 2
call fcn.00405a91
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, edi
jge 0x404b0b
push 0x41570c
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], 3
call fcn.00405a91
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x1c]
call eax
cmp eax, edi
jge 0x404b30
push 0x41570c
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], 4
call fcn.00405a91
mov dword [ebp - 4], 0xffffffff
jmp 0x404b51
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x404b60
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x404b6f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405ec1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417160]
jne 0x405ecb
repz ret
jmp fcn.00407efc
Function at 0x40c1e1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417160]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040799a
and dword [ebp - 0x14], 0
cmp dword [0x4190ac], 0
mov dword [ebp - 0x18], eax
jne 0x40c294
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c33c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40c33c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4190ac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4190b0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4190b4], eax
call edi
push eax
call esi
mov dword [0x4190bc], eax
test eax, eax
je 0x40c294
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4190b8], eax
mov eax, dword [0x4190b8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c2ed
cmp dword [0x4190bc], ecx
je 0x40c2ed
push eax
call esi
push dword [0x4190bc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c2ed
test ebx, ebx
je 0x40c2ed
call edi
test eax, eax
je 0x40c2e4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c2e4
test byte [ebp - 8], 1
jne 0x40c2ed
or dword [ebp + 0x10], 0x200000
jmp 0x40c320
mov eax, dword [0x4190b0]
cmp eax, dword [ebp - 0x18]
je 0x40c320
push eax
call esi
test eax, eax
je 0x40c320
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c320
mov eax, dword [0x4190b4]
cmp eax, dword [ebp - 0x18]
je 0x40c320
push eax
call esi
test eax, eax
je 0x40c320
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4190ac]
call esi
test eax, eax
je 0x40c33c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c33e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405ec1
leave
ret