joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404730
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push pe_nt_image_headers32
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [0x4070c8]
mov edi, eax
cmp edi, 0xffffffff
je 0x40477c
lea eax, [ebp - 4]
push eax
push edi
call dword [0x407098]
push esi
push esi
push esi
push 2
push esi
push edi
mov dword [ebp + 8], eax
call dword [0x4070dc]
push edi
mov edi, dword [0x4070d8]
mov ebx, eax
call edi
cmp ebx, 0xffffffff
jne 0x404780
xor eax, eax
jmp 0x40479b
push esi
push esi
push esi
push 4
push ebx
call dword [0x4070b8]
push ebx
mov esi, eax
call edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406c70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, ecx
shr edi, 0x10
and ecx, 0xffff
cmp ebx, 1
jne 0x406b8b
mov eax, dword [esp + 0x10]
movzx edx, byte [eax]
add ecx, edx
cmp ecx, 0xfff1
jb 0x406b71
sub ecx, 0xfff1
add edi, ecx
cmp edi, 0xfff1
jb 0x406b81
sub edi, 0xfff1
mov eax, edi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
ret
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x406b9d
pop esi
pop edi
mov eax, 1
pop ebx
ret
cmp ebx, 0x10
jae 0x406bd5
test ebx, ebx
je 0x406bb1
movzx eax, byte [esi]
add ecx, eax
inc esi
add edi, ecx
dec ebx
jne 0x406ba6
cmp ecx, 0xfff1
jb 0x406bbf
sub ecx, 0xfff1
mov eax, edi
xor edx, edx
mov esi, 0xfff1
div esi
pop esi
pop edi
pop ebx
mov eax, edx
shl eax, 0x10
or eax, ecx
ret
cmp ebx, 0x15b0
jb 0x406cab
mov eax, 0x5e6ea9af
mul ebx
push ebp
mov ebp, edx
shr ebp, 0xb
mov edi, edi
sub ebx, 0x15b0
mov eax, 0x15b
jmp 0x406c00
movzx edx, byte [esi]
add ecx, edx
movzx edx, byte [esi + 1]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 2]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 3]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 4]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 5]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 6]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 7]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 8]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 9]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xa]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xb]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xc]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xd]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xe]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xf]
add edi, ecx
add ecx, edx
add edi, ecx
add esi, 0x10
dec eax
jne 0x406c00
mov eax, ecx
xor edx, edx
mov ecx, 0xfff1
div ecx
mov eax, edi
mov edi, 0xfff1
mov ecx, edx
xor edx, edx
div edi
dec ebp
mov edi, edx
jne 0x406bf0
pop ebp
test ebx, ebx
je 0x406d76
cmp ebx, 0x10
jb 0x406d4d
mov eax, ebx
shr eax, 4
Function at 0x4149d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
jmp 0x4149ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4149f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4149e0
mov eax, 1
add ebx, ebx
jne 0x414a03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414a14
jne 0x414a33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414a33
dec eax
add ebx, ebx
jne 0x414a20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4149f8
add ebx, ebx
jne 0x414a2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x414a85
xor ecx, ecx
sub eax, 3
jb 0x414a4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414aba
sar eax, 1
mov ebp, eax
jmp 0x414a56
add ebx, ebx
jne 0x414a56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414a24
inc ecx
add ebx, ebx
jne 0x414a64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414a24
add ebx, ebx
jne 0x414a71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414a66
jne 0x414a82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414a66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414aa4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414a96
jmp 0x4149e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414aa4
add edi, ecx
jmp 0x4149e6
pop esi
mov edi, esi
mov ecx, 0x8800
jmp 0x414af5
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x414ad5
cmp al, 0x8f
ja 0x414ad5
cmp byte [edi - 2], 0xf
je 0x414adb
sub al, 0xe8
cmp al, 1
ja 0x414aff
cmp ecx, 4
jb 0x414b04
mov eax, dword [edi]
sub al, 5
jne 0x414aff
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x414b04
mov al, byte [edi]
inc edi
jmp 0x414ad5
sub ecx, 1
jae 0x414ac4
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414b4c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x141b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x141e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414b0a
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x141e8]
or eax, eax
je 0x414b46
mov dword [ebx], eax
add ebx, 4
jmp 0x414b27
call dword [esi + 0x141e4]
mov ebp, dword [esi + 0x141ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x414b80
sub esp, 0xffffff80
jmp 0x401ccf
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x403e59
pop dword [ebp - 0x38]
mov eax, 0x42b945e6
sub eax, 0x4279078d
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x1bae04bf
add dword [ebp - 0x48], 0x32a4408c
mov dword [ebp - 0x44], 0xf56ca660
add dword [ebp - 0x44], 0x3cc6a5e5
mov dword [ebp - 0x40], 0x95a80c59
sub dword [ebp - 0x40], 0x495bc82b
mov dword [ebp - 0x3c], 0x7606bbec
add dword [ebp - 0x3c], 0x89f94414
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xfbf73d3e
sub dword [ebp - 0x48], 0x8784d3e8
mov dword [ebp - 0x44], 0xea0859d8
add dword [ebp - 0x44], 0x5764079d
mov dword [ebp - 0x40], 0xb0c683bc
sub dword [ebp - 0x40], 0x4d571750
mov dword [ebp - 0x3c], 0x6982fc3b
add dword [ebp - 0x3c], 0x967d03c5
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x358b5
push 0
call eax
mov ecx, 0x4330
xor edx, edx
add edx, eax
mov ebx, 0x411000
add ebx, dword [ebp - 0x38]
mov edi, 0x97d192ab
add edi, 0x2eb6a788
xor dword [ebp - 0x30], 0x7ec58f20
mov esi, dword [ebx]
mov dword [ebp - 0x20], 0x19945bbe
add esi, edi
mov dword [edx], esi
sub dword [ebp - 0x10], 0x69dd42db
add edx, 4
add ebx, 0xd807b228
sub ebx, 0xd807b224
loop 0x403f67
add eax, 0xff93
xor ebx, ebx
add ebx, eax
add eax, 0x3ae540ac
sub eax, 0x3ae540a7
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x4336d7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x4336e6
pop dword [ebp - 0x34]
mov eax, 0x85bf9a96
sub eax, 0x857c63b0
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x4fd60
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x47ad
xor edi, edi
add edi, eax
mov edx, 0x22b6d7dc
add edx, 0xdd944824
add edx, dword [ebp - 0x34]
mov esi, 0x5c64fa2f
sub esi, 0xf2647d6e
sub dword [ebp - 0x14], 0xadb14ebc
mov ebx, dword [edx]
xor dword [ebp - 0x30], ecx
xor ebx, esi
mov dword [ebp - 0xc], 0x1d65ee45
mov dword [edi], ebx
add dword [ebp - 0x2c], esi
add edi, 0x39466c2d
sub edi, 0x39466c29
add edx, 0x8928e3cd
sub edx, 0x8928e3c9
loop 0x43373c
add eax, 0x11187
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x3b8dae5
sub ecx, 0x378dae5
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x4405d6
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46d5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x440619
push str.SystemFunction040
push dword [0x46d5d8]
call edi
push str.SystemFunction041
push dword [0x46d5d8]
mov dword [0x46d5e0], eax
call edi
mov dword [0x46d5e4], eax
jmp 0x44061e
mov eax, dword [0x46d5e4]
cmp dword [0x46d5e0], 0
je 0x44062f
test eax, eax
jne 0x4406d6
push 0x46d5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4406e0
push str.CryptProtectMemory
push dword [0x46d5dc]
call edi
cmp dword [0x46d5e0], 0
mov dword [0x46d5e8], eax
jne 0x440694
test eax, eax
jne 0x440694
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44067e
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440685
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work21_s_srclibsdutilcryputil.cpp
call fcn.004038fa
jmp 0x4406e0
push str.CryptUnprotectMemory
push dword [0x46d5dc]
call edi
cmp dword [0x46d5e4], 0
mov dword [0x46d5ec], eax
jne 0x4406d6
test eax, eax
jne 0x4406d6
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4406ca
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4406d1
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x440688
mov dword [0x46d5f0], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x4b182dac
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x222f0f0e
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401457
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ecx, dword [eax]
mov ebx, dword [ebp + 8]
xor ebx, ecx
shr ecx, 8
and ebx, 0xff
xor ecx, dword [edx + ebx*4]
mov ebx, dword [eax + 8]
mov dword [eax], ecx
and ecx, 0xff
add ecx, dword [eax + 4]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [eax + 4], ecx
shr ecx, 0x18
xor ecx, ebx
shr ebx, 8
and ecx, 0xff
xor ebx, dword [edx + ecx*4]
mov dword [eax + 8], ebx
mov eax, dword [ebp + 8]
pop ebx
pop ebp
ret
Function at 0x402a77
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ecx, dword [eax]
mov ebx, dword [ebp + 8]
xor ebx, ecx
shr ecx, 8
and ebx, 0xff
xor ecx, dword [edx + ebx*4]
mov ebx, dword [eax + 8]
mov dword [eax], ecx
and ecx, 0xff
add ecx, dword [eax + 4]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [eax + 4], ecx
shr ecx, 0x18
xor ecx, ebx
shr ebx, 8
and ecx, 0xff
xor ebx, dword [edx + ecx*4]
mov dword [eax + 8], ebx
mov eax, dword [ebp + 8]
pop ebx
pop ebp
ret
Function at 0x4034e5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
xor edi, edi
mov esi, dword [ebp + 8]
mov eax, 0xffffff9a
test esi, esi
je 0x4036c8
cmp dword [esi + 0x2c], 0
je 0x4036c8
mov dword [esi + 0x34], 0
cmp dword [esi + 0x80], 8
jne 0x403568
cmp dword [esi + 0x84], 0
jne 0x403568
cmp dword [esi + 0x40], 0
jne 0x40353e
mov eax, esi
call fcn.00403357
lea eax, [esi + 0x88]
mov dword [esi + 0x40], 0x4000
mov dword [esi + 0x3c], eax
lea eax, [esi + 0x30]
mov ebx, dword [esi + 0x44]
push 4
push eax
call fcn.004aaa70
mov edi, eax
mov eax, dword [esi + 0x44]
sub eax, ebx
add dword [esi + 0x6c], eax
test edi, edi
pop ebx
pop eax
je 0x403521
xor eax, eax
cmp edi, 1
setne al
neg eax
and edi, eax
cmp dword [esi + 0x6c], 0
setne dl
xor eax, eax
test edi, edi
sete al
test edx, eax
je 0x403587
mov eax, esi
call fcn.00403357
inc eax
jne 0x403587
or edi, 0xffffffff
cmp dword [esi + 0x80], 8
jne 0x4035ac
cmp dword [esi + 0x84], 0
jne 0x4035c4
lea eax, [esi + 0x30]
push eax
call fcn.004aa720
mov dword [esi + 0x68], 0
mov edi, eax
pop ecx
cmp dword [esi + 0x84], 0
jne 0x4035c4
mov eax, dword [esi + 0x408c]
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 0x38]
mov dword [ebp + 0xc], eax
mov ebx, dword [esi + 0x40a4]
mov eax, dword [esi + 0x74]
add ebx, dword [esi + 0x44]
add eax, 0x10
mov edx, dword [ebp + 0x10]
push 4
call fcn.00402c30
mov eax, dword [esi + 0x74]
add eax, 0x14
mov edx, ebx
push 4
call fcn.00402c30
pop eax
pop edx
cmp dword [esi + 0x5c], 1
jne 0x403607
mov eax, dword [esi + 0x74]
mov edx, 1
add eax, 0x24
push 2
call fcn.00402c30
pop eax
mov eax, dword [esi + 0x74]
mov edx, dword [ebp + 0xc]
add eax, 0x18
push 4
call fcn.00402c30
pop eax
test edi, edi
jne 0x40362d
mov edx, dword [esi + 0x74]
lea eax, [esi + 0x24]
push dword [esi + 0x78]
call fcn.00402b27
mov edi, eax
pop eax
push dword [esi + 0x74]
call fcn.004bdd30
pop eax
test edi, edi
jne 0x4036b9
push dword [esi + 0x20]
push dword [esi + 0x1c]
call dword [esi + 0xc]
push 0
or edi, 0xffffffff
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x70]
add eax, 0xe
push eax
push dword [esi + 0x20]
push dword [esi + 0x1c]
call dword [esi + 0x10]
add esp, 0x18
test eax, eax
jne 0x4036a1
mov edx, dword [esi + 0x20]
push 4
push dword [ebp + 0x10]
mov eax, esi
call fcn.00402be1
pop ecx
mov edi, eax
pop eax
test edi, edi
jne 0x4036a1
mov edx, dword [esi + 0x20]
mov eax, esi
push 4
push ebx
call fcn.00402be1
mov edi, eax
pop eax
test edi, edi
pop edx
jne 0x4036a1
mov edx, dword [esi + 0x20]
push 4
push dword [ebp + 0xc]
mov eax, esi
call fcn.00402be1
pop ecx
mov edi, eax
pop ebx
push 0
push dword [ebp - 0x10]
push dword [esi + 0x20]
push dword [esi + 0x1c]
call dword [esi + 0x10]
add esp, 0x10
test eax, eax
je 0x4036b9
or edi, 0xffffffff
inc dword [esi + 0x40b0]
mov dword [esi + 0x2c], 0
mov eax, edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4056ed
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa0
lea ebx, [ebp - 0xa4]
push 0x94
push section..data
push ebx
call fcn.004bdd50
add esp, 0xc
cmp dword [0x6670b0], 0
jne 0x405779
push ebx
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
je 0x405736
cmp dword [ebp - 0x94], 2
jne 0x405736
mov dword [0x667070], 1
mov dword [0x6670e0], 1
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x667090], eax
push eax
push 0
push 0x4053aa
push 3
call sub.USER32.dll_SetWindowsHookExA
mov dword [0x667080], eax
push 1
call sub.WINMM.DLL_timeBeginPeriod
push 0x40522b
call fcn.004012d0
mov dword [0x6670b0], 1
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x40577e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
jmp 0x405861
mov ecx, dword [ebp - 0x20]
sub ecx, 0x100
cmp ecx, 5
ja 0x40581e
mov eax, 1
shl eax, cl
test al, 0x33
je 0x40581e
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x40581e
cmp eax, 0x12
jbe 0x4057bc
sub eax, 0x5b
cmp eax, 1
ja 0x40581e
mov dword [0x6670a0], 0
push 0x10
call sub.USER32.dll_GetKeyState
test ax, ax
jns 0x4057d9
or dword [0x6670a0], 1
push 0x11
call sub.USER32.dll_GetKeyState
test ax, ax
jns 0x4057ec
or dword [0x6670a0], 2
push 0x12
call sub.USER32.dll_GetKeyState
test ax, ax
jns 0x4057ff
or dword [0x6670a0], 4
push 0x5b
call sub.USER32.dll_GetKeyState
test ax, ax
js 0x405817
push 0x5c
call sub.USER32.dll_GetKeyState
test ax, ax
jns 0x40581e
or dword [0x6670a0], 8
mov eax, dword [ebp - 0x24]
call fcn.0040524a
test eax, eax
je 0x405852
push dword [ebp - 0x24]
jmp 0x405830
push ebx
call sub.USER32.dll_GetParent
mov ebx, eax
test eax, eax
je 0x405852
call fcn.0040524a
test eax, eax
jne 0x40582f
lea eax, [ebp - 0x24]
push eax
push ebx
call sub.USER32.dll_IsDialogMessageA
test eax, eax
jne 0x405861
lea ebx, [ebp - 0x24]
push ebx
call sub.USER32.dll_TranslateMessage
push ebx
call sub.USER32.dll_DispatchMessageA
lea eax, [ebp - 0x24]
push 1
push 0
push 0
push 0
push eax
call sub.USER32.dll_PeekMessageA
test eax, eax
jne 0x40578a
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x40587f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xff
push 0xffffffffffffffff
push 0
push 0
push 0
call sub.USER32.dll_MsgWaitForMultipleObjects
leave
jmp fcn.0040577e

Function at 0x405d97
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x667070], 0
mov eax, dword [ebp + 8]
je 0x405dc0
push 0xa
push 0
push 0
push eax
call fcn.004b244c
mov dword [esp], eax
push 0
push 0
call sub.SHELL32.DLL_ShellExecuteW
jmp 0x405dd8
push 0xa
push 0
push 0
push eax
call fcn.004b2432
mov dword [esp], eax
push 0
push 0
call sub.SHELL32.DLL_ShellExecuteA
cmp eax, 0x20
leave
setg al
movzx eax, al
ret
Function at 0x417135
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x130
mov edi, dword [ebp + 0xc]
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp eax, 0xffffffff
je 0x4171b2
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x13c], 0x128
push eax
push esi
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x4171ac
cmp dword [ebp - 0x124], edi
jne 0x41719d
push dword [ebp - 0x134]
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
test eax, eax
je 0x41719d
push 0xffffffffffffffff
push eax
call sub.KERNEL32.DLL_TerminateProcess
push ebx
call sub.KERNEL32.DLL_CloseHandle
lea eax, [ebp - 0x13c]
push eax
push esi
call sub.KERNEL32.DLL_Process32Next
jmp 0x41716b
push esi
call sub.KERNEL32.DLL_CloseHandle
push 0xffffffffffffffff
push dword [ebp + 8]
call sub.KERNEL32.DLL_TerminateProcess
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4176d6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x677300], 0
mov eax, dword [ebp + 8]
je 0x4176fd
push eax
call fcn.004b244c
mov dword [esp], eax
call sub.msvcrt.dll__wgetenv
pop edx
mov dword [ebp + 8], eax
leave
jmp fcn.004b162f
push eax
call fcn.004b2432
mov dword [esp], eax
call sub.msvcrt.dll_getenv
pop ecx
mov dword [ebp + 8], eax
leave
jmp fcn.004b15ba
Function at 0x417c74
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.004b2432
mov dword [esp], eax
call sub.WSOCK32.DLL_gethostbyname
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x417ca4
movsx edx, word [ecx + 8]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
movsx edx, word [ecx + 0xa]
mov dword [eax], edx
mov eax, dword [ecx + 0xc]
leave
ret

Function at 0x417ca6
Capabilities:
Connect socket

Disassembly:
push ebp
or eax, 0xffffffff
mov ebp, esp
push edi
sub esp, 0x10
cmp dword [ebp + 0x10], 2
jne 0x417cf4
cld
xor eax, eax
lea edi, [ebp - 0x14]
mov ecx, 4
rep stosd dword es:[edi], eax
movzx eax, word [ebp + 0x18]
mov word [ebp - 0x14], 2
push eax
call sub.WSOCK32.DLL_htons
push dword [ebp + 0x14]
push dword [ebp + 0xc]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
call fcn.004bdd50
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [ebp + 8]
call sub.WSOCK32.DLL_connect
mov edi, dword [ebp - 4]
leave
ret

Function at 0x417f26
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
mov ecx, 4
cld
push edi
lea edi, [ebp - 0x14]
sub esp, 0x10
rep stosd dword es:[edi], eax
push dword [ebp + 0x18]
mov word [ebp - 0x14], 2
call sub.WSOCK32.DLL_htonl
mov dword [ebp - 0x10], eax
movzx eax, word [ebp + 0x1c]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.WSOCK32.DLL_sendto
mov edi, dword [ebp - 4]
leave
ret

Function at 0x418092
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
lea eax, [ebp - 0x190]
push eax
push 0x101
call sub.WSOCK32.DLL_WSAStartup
push 0x418089
call fcn.004012d0
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [0x677290], eax
lea edx, [eax + 0x20]
add eax, 0x40
mov dword [0x6772b0], edx
mov dword [0x6772a0], eax
leave
ret
Function at 0x419a29
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov esi, eax
sub esp, 0x7d0
xor ebx, ebx
push 0xd
push str.urn:publicid:
push eax
call fcn.00449cc9
add esp, 0xc
xor edx, edx
test eax, eax
jne 0x419b8f
add esi, 0xd
cmp byte [esi], 0
je 0x419b79
cmp ebx, 0x7cc
ja 0x419b79
mov al, byte [esi]
cmp al, 0x2b
jne 0x419a7d
mov byte [ebp + ebx - 0x7d8], 0x20
jmp 0x419b72
cmp al, 0x3a
jne 0x419a97
mov byte [ebp + ebx - 0x7d8], 0x2f
inc ebx
mov byte [ebp + ebx - 0x7d8], 0x2f
jmp 0x419b72
cmp al, 0x3b
jne 0x419ab1
mov byte [ebp + ebx - 0x7d8], 0x3a
inc ebx
mov byte [ebp + ebx - 0x7d8], 0x3a
jmp 0x419b72
cmp al, 0x25
jne 0x419b6b
mov al, byte [esi + 1]
cmp al, 0x32
jne 0x419ad3
cmp byte [esi + 2], 0x42
jne 0x419aeb
mov byte [ebp + ebx - 0x7d8], 0x2b
jmp 0x419b58
cmp al, 0x33
jne 0x419ae7
cmp byte [esi + 2], 0x41
jne 0x419aff
mov byte [ebp + ebx - 0x7d8], 0x3a
jmp 0x419b58
cmp al, 0x32
jne 0x419afb
cmp byte [esi + 2], 0x46
jne 0x419b13
mov byte [ebp + ebx - 0x7d8], 0x2f
jmp 0x419b58
cmp al, 0x33
jne 0x419b0f
cmp byte [esi + 2], 0x42
jne 0x419b27
mov byte [ebp + ebx - 0x7d8], 0x3b
jmp 0x419b58
cmp al, 0x32
jne 0x419b23
cmp byte [esi + 2], 0x37
jne 0x419b3b
mov byte [ebp + ebx - 0x7d8], 0x27
jmp 0x419b58
cmp al, 0x33
jne 0x419b37
cmp byte [esi + 2], 0x46
jne 0x419b61
mov byte [ebp + ebx - 0x7d8], 0x3f
jmp 0x419b58
cmp al, 0x32
jne 0x419b61
mov al, byte [esi + 2]
cmp al, 0x33
jne 0x419b4c
mov byte [ebp + ebx - 0x7d8], 0x23
jmp 0x419b58
cmp al, 0x35
jne 0x419b61
mov byte [ebp + ebx - 0x7d8], 0x25
inc ebx
add esi, 3
jmp 0x419a55
mov byte [ebp + ebx - 0x7d8], 0x25
jmp 0x419b72
mov byte [ebp + ebx - 0x7d8], al
inc ebx
inc esi
jmp 0x419a55
lea eax, [ebp - 0x7d8]
mov byte [ebx + ebp - 0x7d8], 0
push eax
call fcn.00449b54
mov edx, eax
lea esp, [ebp - 8]
mov eax, edx
pop ebx
pop esi
pop ebp
ret

Function at 0x419cb4
Capabilities:
Read file on windows

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x30
mov ebx, eax
test eax, eax
je 0x419d31
lea eax, [ebp - 0x3c]
push eax
push ebx
call sub.msvcrt.dll__stat_1
pop ecx
xor edx, edx
pop esi
test eax, eax
js 0x419d31
push 0
push ebx
call sub.msvcrt.dll__open
mov edi, eax
pop eax
pop edx
xor edx, edx
test edi, edi
js 0x419d31
mov esi, dword [ebp - 0x28]
lea eax, [esi + 0xa]
push eax
call dword [0x4fa8d8]
mov ebx, eax
pop eax
test ebx, ebx
jne 0x419d09
mov eax, str.allocating_catalog_data
call fcn.004191b4
jmp 0x419d21
push esi
push ebx
push edi
call sub.msvcrt.dll__read
add esp, 0xc
mov esi, eax
test eax, eax
jns 0x419d25
push ebx
call dword [0x4fa8e0]
xor edx, edx
jmp 0x419d31
push edi
call sub.msvcrt.dll__close
mov byte [esi + ebx], 0
mov edx, ebx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret