joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477c10
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x477c60
push esi
push 0x4e42b0
push 0x4b4740
call fcn.0047fbc0
mov esi, eax
test esi, esi
je 0x477c5f
cmp byte [esp + 0x10], 0
je 0x477c3e
push edi
push edi
call dword [0x4b14f4]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x477c43
push esi
sub eax, edx
push eax
push 1
push edi
call fcn.004a0202
push esi
call fcn.004a0026
add esp, 0x14
pop esi
pop edi
ret 8

Function at 0x47b430
Capabilities:
Write file on windows

Disassembly:
cmp byte [0x4e42b0], 0
jne 0x47b47e
push edi
mov edi, dword [0x4f66d0]
test edi, edi
je 0x47b47d
push esi
push 0x4e42b0
push 0x4b4740
call fcn.0047fbc0
mov esi, eax
test esi, esi
je 0x47b47c
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47b460
push esi
sub eax, edx
push eax
push 1
push edi
call fcn.004a0202
push esi
call fcn.004a0026
add esp, 0x14
pop esi
pop edi
ret

Function at 0x47c0b0
Capabilities:
Write file on windows

Disassembly:
push 1
call fcn.0047c010
jmp fcn.0047b430

Function at 0x47c0c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x254
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
mov ebx, dword [esp + 0x25c]
push esi
push edi
mov edi, dword [esp + 0x268]
xor esi, esi
push esi
lea eax, [esp + 0x10]
push str.Setup.rar
push eax
mov byte [edi], 0
call fcn.0049eab5
add esp, 0xc
push 0x200
push 0x4b1914
lea ecx, [esp + 0x64]
push ecx
push 0x4b44b0
lea edx, [esp + 0x1c]
push edx
call fcn.00457500
cmp byte [esp + 0x5c], 0
je 0x47c1df
lea eax, [esp + 0x5c]
push eax
push ebx
call fcn.00465ee0
test eax, eax
je 0x47c170
inc esi
push esi
lea ecx, [esp + 0x10]
push str.Setup.rar
push ecx
call fcn.0049eab5
add esp, 0xc
push 0x200
push 0x4b1914
lea edx, [esp + 0x64]
push edx
push 0x4b44b0
lea eax, [esp + 0x1c]
push eax
call fcn.00457500
cmp byte [esp + 0x5c], 0
jne 0x47c126
jmp 0x47c1df
push 0
push 1
push esi
call fcn.0047a900
push 0
push 0x4b4724
lea ecx, [esp + 0x14]
push ecx
call fcn.00457560
test eax, eax
setne al
mov byte [edi], al
test al, al
je 0x47c1df
cmp byte [0x4e42b0], 0
jne 0x47c1df
mov edi, dword [0x4f66d0]
test edi, edi
je 0x47c1df
push 0x4e42b0
push 0x4b4740
call fcn.0047fbc0
mov esi, eax
test esi, esi
je 0x47c1df
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47c1c3
push esi
sub eax, edx
push eax
push 1
push edi
call fcn.004a0202
push esi
call fcn.004a0026
add esp, 0x14
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049eaa6
add esp, 0x254
ret 8
Function at 0x491a10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x428
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x424], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], 0x35a00
call dword [0x4b13e0]
push 0xc
push 0
lea ecx, [esp + 8]
push ecx
push 0x4b5950
push 0x4b1b9c
call fcn.00457590
lea edx, [esp + 0x24]
push edx
call fcn.0044edb0
lea eax, [esp + 0x24]
push eax
call fcn.0044ebb0
lea eax, [esp + 0x24]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x491a68
mov ecx, dword [0x4b5944]
mov edx, dword [0x4b5948]
mov dword [eax], ecx
mov ecx, dword [str.VirusScan.bmp]
push esi
mov dword [eax + 4], edx
lea edx, [esp + 0x28]
push 0x4b1948
push edx
mov dword [eax + 8], ecx
mov dword [esp + 0x18], 0
call fcn.004a0348
mov esi, eax
add esp, 8
test esi, esi
je 0x491ac3
push esi
push 0xc
lea eax, [esp + 0x18]
push 1
push eax
call fcn.004a05f9
push esi
call fcn.004a0026
add esp, 0x14
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
je 0x491b75
mov ecx, dword [esp + 0x10]
push 0xc
cmp ecx, eax
je 0x491b41
lea ecx, [esp + 0x20]
push ecx
push 0x4b5950
push 0x4b1b9c
call fcn.00457460
lea edx, [esp + 0x28]
push 0x4b1ba8
push edx
call fcn.004a0348
mov esi, eax
add esp, 8
test esi, esi
je 0x491b21
push esi
push 0xc
lea eax, [esp + 0x24]
push 1
push eax
call fcn.004a0202
push esi
call fcn.004a0026
add esp, 0x14
mov dword [0x4dbcac], 0
pop esi
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.0049eaa6
add esp, 0x428
ret
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x1c]
push 0x4b5950
push 0x4b1b9c
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.00457460
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jne 0x491bbf
cmp dword [esp + 0x10], eax
je 0x491bbf
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x28]
push 0x4b1ba8
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call fcn.004a0348
mov esi, eax
add esp, 8
test esi, esi
je 0x491bbf
push esi
push 0xc
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.004a0202
push esi
call fcn.004a0026
add esp, 0x14
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
xor eax, eax
push 1
xor esi, esi
sub ecx, edx
push eax
sbb esi, eax
push esi
push ecx
call fcn.0049f660
mov ecx, dword [esp + 8]
xor esi, esi
sub eax, ecx
mov ecx, dword [esp + 0x20]
sbb edx, esi
push esi
add eax, ecx
push 0x989680
adc edx, esi
push edx
push eax
call fcn.0049f9e0
push esi
push 0xe10
push edx
push eax
call fcn.0049f9e0
push esi
push 0x18
push edx
push eax
call fcn.0049f9e0
mov dword [0x4dbcac], eax
test eax, eax
jge 0x491c22
mov dword [0x4dbcac], 0x168
mov ecx, dword [esp + 0x428]
pop esi
xor ecx, esp
call fcn.0049eaa6
add esp, 0x428
ret
Function at 0x499c00
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
mov edi, eax
mov eax, 0x12345678
mov edx, 0x23456789
mov esi, 0x34567890
mov dword [0x500790], eax
mov dword [0x500794], edx
mov dword [0x500798], esi
mov cl, byte [edi]
test cl, cl
je 0x499c80
lea ebx, [ebx]
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4c6a28]
inc edi
movzx ecx, al
add ecx, edx
imul ecx, ecx, 0x8088405
inc ecx
mov edx, ecx
shr ecx, 0x18
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x4c6a28]
mov dword [0x500790], eax
mov dword [0x500794], edx
mov dword [0x500798], esi
mov cl, byte [edi]
test cl, cl
jne 0x499c30
pop edi
pop esi
ret

Function at 0x499c90
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x10
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, esi
call fcn.00499c00
push 0xa
lea eax, [esp + 0x14]
push eax
call fcn.00420ba0
mov eax, esi
call fcn.00499c00
xor edi, edi
jmp 0x499cd0
movzx ebp, byte [esp + edi + 0x10]
mov esi, dword [0x500790]
mov ecx, dword [0x500798]
mov eax, ebp
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4c6a28]
mov edx, ecx
mov eax, esi
mov dword [0x500790], eax
movzx eax, al
add eax, dword [0x500794]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x500794], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4c6a28]
or edx, 2
mov dword [0x500798], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
and ecx, 0xff
xor ecx, ebp
push ebx
push ecx
call fcn.004a28d5
inc edi
add esp, 8
cmp edi, 0xa
jl 0x499cd0
mov esi, dword [esp + 0x28]
mov edi, dword [0x500790]
mov ebp, esi
mov ecx, dword [0x500798]
shr ebp, 0x10
mov eax, ebp
xor eax, edi
and eax, 0xff
shr edi, 8
xor edi, dword [eax*4 + 0x4c6a28]
mov edx, ecx
mov eax, edi
mov dword [0x500790], eax
movzx eax, al
add eax, dword [0x500794]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x500794], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4c6a28]
or edx, 2
mov dword [0x500798], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
mov edx, esi
shr edx, 8
xor ecx, edx
shr ecx, 8
and ecx, 0xff
push ebx
push ecx
call fcn.004a28d5
mov edi, dword [0x500790]
mov ecx, dword [0x500798]
shr esi, 0x18
xor esi, edi
and esi, 0xff
shr edi, 8
xor edi, dword [esi*4 + 0x4c6a28]
mov edx, ecx
mov eax, edi
mov dword [0x500790], eax
movzx eax, al
add eax, dword [0x500794]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x500794], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
or edx, 2
shr ecx, 8
xor ecx, dword [eax*4 + 0x4c6a28]
mov eax, edx
xor eax, 1
imul eax, edx
and eax, 0xff00
xor eax, ebp
shr eax, 8
push ebx
push eax
mov dword [0x500798], ecx
call fcn.004a28d5
mov ecx, dword [esp + 0x2c]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049eaa6
add esp, 0x10
ret 0xc
Function at 0x499e80
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Write file on windows

Disassembly:
cmp byte [0x4e52b8], 0
push ebp
mov ebp, dword [esp + 0x10]
je 0x499f1b
push ebx
mov ebx, dword [esp + 0x10]
imul ebx, ebp
push edi
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x499f19
push esi
movsx eax, byte [edi]
mov esi, dword [0x500790]
xor eax, esi
and eax, 0xff
mov ecx, dword [0x500798]
shr esi, 8
xor esi, dword [eax*4 + 0x4c6a28]
mov edx, ecx
mov eax, esi
mov dword [0x500790], eax
movzx eax, al
add eax, dword [0x500794]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x500794], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4c6a28]
or edx, 2
mov dword [0x500798], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
xor byte [edi], cl
inc edi
sub ebx, 1
jne 0x499ea4
pop esi
pop edi
pop ebx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edx
push ebp
push eax
push ecx
call fcn.004a0202
add esp, 0x10
pop ebp
ret 0x10
Function at 0x49c610
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, dword [esp + 0x40c]
push edi
mov edi, dword [esp + 0x414]
push edi
push 0x50
call fcn.004a28d5
push edi
push 0x4b
call fcn.004a28d5
push edi
push 3
call fcn.004a28d5
push edi
push 4
call fcn.004a28d5
movsx eax, byte [esi + 2]
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 3]
push edi
push ecx
call fcn.004a28d5
movsx edx, byte [esi + 0x2c]
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 0x2d]
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 6]
add esp, 0x40
push edi
push ecx
call fcn.004a28d5
movsx edx, byte [esi + 7]
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 8]
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 9]
push edi
push ecx
call fcn.004a28d5
movsx edx, byte [esi + 0xa]
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 0xb]
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 0xc]
push edi
push ecx
call fcn.004a28d5
movsx edx, byte [esi + 0xd]
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 0xe]
add esp, 0x40
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 0xf]
push edi
push ecx
call fcn.004a28d5
movsx edx, byte [esi + 0x10]
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 0x11]
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 0x12]
push edi
push ecx
call fcn.004a28d5
movsx edx, byte [esi + 0x13]
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 0x14]
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 0x15]
push edi
push ecx
call fcn.004a28d5
movsx edx, byte [esi + 0x16]
add esp, 0x40
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 0x17]
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 0x18]
push edi
push ecx
call fcn.004a28d5
mov edx, dword [esi + 0x18]
shr edx, 8
movsx eax, dl
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 0x1c]
push edi
push ecx
call fcn.004a28d5
mov edx, dword [esi + 0x1c]
shr edx, 8
movsx eax, dl
push edi
push eax
call fcn.004a28d5
mov edx, dword [esi + 0x48]
add esp, 0x30
push 0x400
lea ecx, [esp + 0xc]
push ecx
push edx
call fcn.0044f3e0
mov eax, dword [esi + 0x18]
push edi
push eax
lea ecx, [esp + 0x10]
push 1
push ecx
call fcn.004a0202
add esp, 0x10
cmp eax, dword [esi + 0x18]
jne 0x49c7d4
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x49c7d0
mov edx, dword [esi + 0x3c]
push edi
push eax
push 1
push edx
call fcn.004a0202
add esp, 0x10
cmp eax, dword [esi + 0x1c]
jne 0x49c7d4
xor eax, eax
jmp 0x49c7d9
mov eax, 0xa
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.0049eaa6
add esp, 0x404
ret 8
Function at 0x49cb80
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
push esi
push 0x50
call fcn.004a28d5
push esi
push 0x4b
call fcn.004a28d5
push esi
push 5
call fcn.004a28d5
push esi
push 6
call fcn.004a28d5
push esi
push 0
call fcn.004a28d5
push esi
push 0
call fcn.004a28d5
push esi
push 0
call fcn.004a28d5
push esi
push 0
call fcn.004a28d5
mov ebx, dword [esp + 0x50]
add esp, 0x40
movsx edi, bl
push esi
push edi
call fcn.004a28d5
sar ebx, 8
movsx ebx, bl
push esi
push ebx
call fcn.004a28d5
push esi
push edi
call fcn.004a28d5
push esi
push ebx
call fcn.004a28d5
mov ebx, dword [esp + 0x34]
movsx eax, bl
push esi
push eax
call fcn.004a28d5
mov ecx, ebx
shr ecx, 8
movsx edx, cl
push esi
push edx
call fcn.004a28d5
mov eax, ebx
shr eax, 0x10
movsx ecx, al
push esi
push ecx
call fcn.004a28d5
shr ebx, 0x18
movsx edx, bl
push esi
push edx
call fcn.004a28d5
mov ebx, dword [esp + 0x58]
add esp, 0x40
movsx eax, bl
push esi
push eax
call fcn.004a28d5
mov ecx, ebx
shr ecx, 8
movsx edx, cl
push esi
push edx
call fcn.004a28d5
push esi
mov eax, ebx
shr eax, 0x10
movsx ecx, al
push ecx
call fcn.004a28d5
shr ebx, 0x18
movsx edx, bl
push esi
push edx
call fcn.004a28d5
mov ebx, dword [esp + 0x3c]
movsx eax, bl
push esi
push eax
call fcn.004a28d5
mov ecx, ebx
shr ecx, 8
movsx edx, cl
push esi
push edx
call fcn.004a28d5
add esp, 0x30
test ebx, ebx
je 0x49ccac
mov eax, dword [esp + 0x20]
push esi
push ebx
push 1
push eax
call fcn.004a0202
add esp, 0x10
cmp eax, ebx
je 0x49ccac
pop edi
pop esi
mov eax, 0xa
pop ebx
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x18
Function at 0x4a035b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], edi
je 0x4a0398
cmp dword [ebp + 0x14], edi
je 0x4a0398
cmp ecx, edi
jne 0x4a039f
call fcn.004a2c7a
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004a4725
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4a03b3
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4a03d4
cmp ebx, 0xffffffff
je 0x4a03c3
push ebx
push edi
push ecx
call fcn.0049f060
add esp, 0xc
cmp esi, edi
je 0x4a0380
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4a0380
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test dword [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4a03f1
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4a03f8
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4a04ea
test dword [esi + 0xc], 0x10c
je 0x4a044d
mov eax, dword [esi + 4]
test eax, eax
je 0x4a044d
jl 0x4a054b
mov edi, ebx
cmp ebx, eax
jb 0x4a041e
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4a04f2
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004a8d57
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4a04e2
cmp ebx, dword [ebp - 0xc]
jb 0x4a04ba
cmp dword [ebp - 0xc], 0
je 0x4a0477
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x4a046c
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4a0473
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4a0482
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x4a0482
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4a051e
push eax
push dword [ebp - 8]
push esi
call fcn.004a7a17
pop ecx
push eax
call fcn.004a8c5a
add esp, 0xc
test eax, eax
je 0x4a055d
cmp eax, 0xffffffff
je 0x4a054b
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4a04e2
push esi
call fcn.004a8574
pop ecx
cmp eax, 0xffffffff
je 0x4a054f
cmp dword [ebp - 4], 0
je 0x4a051e
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4a0400
mov eax, dword [ebp + 0x14]
jmp 0x4a039a
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a0509
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0049f060
add esp, 0xc
call fcn.004a2c7a
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4a0390
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a0534
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0049f060
add esp, 0xc
call fcn.004a2c7a
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4a0390
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4a039a
or dword [esi + 0xc], 0x10
jmp 0x4a054f
Function at 0x4a73b0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4a73c1
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4a73be
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
ret

Function at 0x4a73e0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x4a741a
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x4a7412
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x4a741c
inc edx
add eax, 0x28
cmp edx, esi
jb 0x4a7402
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x4a8574
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp esi, edi
jne 0x4a859d
call fcn.004a2c7a
push edi
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
call fcn.004a4725
add esp, 0x14
jmp 0x4a8694
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x4a8694
test al, 0x40
jne 0x4a8694
test al, 2
je 0x4a85bf
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x4a8694
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
jne 0x4a85d5
push esi
call fcn.004aa1d1
pop ecx
jmp 0x4a85da
mov eax, dword [esi + 8]
mov dword [esi], eax
push dword [esi + 0x18]
push dword [esi + 8]
push esi
call fcn.004a7a17
pop ecx
push eax
call fcn.004a8c5a
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, edi
je 0x4a8684
cmp eax, 0xffffffff
je 0x4a8684
test byte [esi + 0xc], 0x82
jne 0x4a8659
push esi
call fcn.004a7a17
pop ecx
cmp eax, 0xffffffff
je 0x4a8644
push esi
call fcn.004a7a17
pop ecx
cmp eax, 0xfffffffe
je 0x4a8644
push esi
call fcn.004a7a17
sar eax, 5
push esi
lea edi, [eax*4 + 0x5016e0]
call fcn.004a7a17
and eax, 0x1f
pop ecx
shl eax, 6
add eax, dword [edi]
pop ecx
jmp 0x4a8649
mov eax, 0x4c1150
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x4a8659
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x4a8677
mov eax, dword [esi + 0xc]
test al, 8
je 0x4a8677
test eax, 0x400
jne 0x4a8677
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x4a8697
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], edi
or eax, 0xffffffff
pop edi
pop esi
ret
Function at 0x4035a0
Capabilities:
Log keystrokes via application hook

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x4035c2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [esi + 0x40]
push 0
push eax
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [esi + 0x64], eax
pop esi
ret

Function at 0x4043d0
Capabilities:
Accept command line arguments
Hide graphical window
Print debug messages

Disassembly:
sub esp, 0x44
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x54]
push eax
push 0
push esi
call sub.MFC42.DLL_AfxWinInit
test eax, eax
jne 0x404406
push str.Fatal_Error:_MFC_initialization_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
mov eax, 1
pop esi
add esp, 0x44
ret 0x10
push esi
call fcn.00405d60
mov eax, dword [str.DrcomwallClientWndClass]
add esp, 4
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x404440
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
mov eax, 1
pop esi
add esp, 0x44
ret 0x10
mov dword [0x40e2a8], esi
call fcn.004077d0
cmp eax, 0xffffffff
jne 0x404471
push 0x30
push 0x40d2d0
push 0x40d2a4
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
mov eax, 1
pop esi
add esp, 0x44
ret 0x10
push eax
call fcn.004078d0
add esp, 4
mov dword [esp + 0x24], 3
mov dword [esp + 0x28], 0x4045f0
mov dword [esp + 0x2c], 0
push 0x72
push esi
mov dword [esp + 0x38], 0x1e
mov dword [esp + 0x3c], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov ecx, dword [str.DrcomwallClientWndClass]
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0x10
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x404505
mov eax, dword [str.DrcomwallClientWndClass]
push 0x10
push eax
push str.This_program_requires_Windows_NT_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret 0x10
call fcn.004059a0
push 0
push 0x4045f0
push 0
push 0x65
push esi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 0
push eax
mov dword [0x411fa0], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x411fa0]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x7c
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea edx, [esp + 0x10]
push 0
push edx
call esi
test eax, eax
je 0x40459d
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov eax, dword [0x411fa0]
test eax, eax
je 0x404579
lea ecx, [esp + 0xc]
push ecx
push eax
call edi
test eax, eax
jne 0x40458b
lea edx, [esp + 0xc]
push edx
call ebp
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
call esi
test eax, eax
jne 0x404564
pop ebp
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret 0x10
Function at 0x405320
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x409e30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push 0
lea eax, [esp + 0x10]
push 0
push eax
mov ecx, 0x40e2b0
mov dword [esp + 0x28], 0
call fcn.00407c00
mov ecx, 0x40e2b0
mov esi, eax
call fcn.00408100
mov ecx, dword [0x40e2a8]
push 0x72
push ecx
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
mov ecx, 0x40e2b0
call fcn.004083d0
test esi, esi
je 0x4053e9
push 0x40d180
lea ecx, [esp + 8]
call fcn.004097d4
push 0xbb8
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x40e2a4
mov byte [esp + 0x28], 1
call fcn.004097d4
mov edx, dword [0x40a4ec]
mov eax, dword [0x40a4e8]
mov esi, dword [0x40a4e4]
or edx, eax
or edx, esi
push 0
push edx
lea eax, [esp + 0x1c]
push 0x7f03
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00401b40
add esp, 0x20
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret