joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ef550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575aab
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5b1074]
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, edx
mov esi, ecx
mov dword [ebp - 0x21c], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], esi
push 0
push eax
mov dword [ebp - 0x224], 0
call fcn.00516180
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x2e
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x4ef5d3
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00409c54
mov ecx, eax
test ecx, ecx
jne 0x4ef5e8
push 0x80004005
call fcn.0040b4a2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4ef5fd
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4ef5ff
call edx
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x4ef6d2
movzx edi, ax
mov ecx, edi
call fcn.00408f5a
mov ebx, eax
test ebx, ebx
je 0x4ef6fe
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4ef6fe
push edi
mov edx, eax
mov ecx, ebx
call fcn.00408f9e
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4ef6fe
mov eax, dword [esi]
mov ecx, 1
movzx edi, word [ebx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x4ef680
push edi
mov ecx, esi
call fcn.00409225
movzx ecx, word [ebx]
lea eax, [ebx + 2]
push ecx
push eax
push edi
push dword [esi]
call fcn.0051d6f6
add esp, 0x10
cmp eax, 0x50
ja case.0x4ef6a3.1
movzx eax, byte [eax + 0x4ef72c]
jmp dword [eax*4 + 0x4ef71c]
push 0x8007000e
call fcn.0040b4a2
push 0x80070057
call fcn.0040b4a2
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg case.0x4ef6a3.20
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [esi]
mov word [eax + edi*2], cx
jmp 0x4ef6fe
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ef6e0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00409323
mov eax, esi
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.0050eff9
mov esp, ebp
pop ebp
ret

Function at 0x550623
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00550228

Function at 0x55062e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005503a9

Function at 0x559ee5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005596ca

Function at 0x559ef0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00559905

Function at 0x55a443
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055a1ca
Function at 0x10002ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
je 0x10002ba8
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test esi, esi
jl 0x10002b97
jg 0x10002aed
test edx, edx
je 0x10002b97
lea edx, [ecx + 0x30]
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x1c], edx
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x10002b07
mov eax, dword [edx]
mov eax, dword [eax]
jmp 0x10002b09
xor eax, eax
cdq
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10002b57
jg 0x10002b1c
test esi, esi
je 0x10002b57
cmp ebx, eax
jg 0x10002b2c
jl 0x10002b26
cmp edi, esi
jae 0x10002b2c
mov esi, edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0xc]
push esi
push eax
push dword [esp + 0x20]
call fcn.10008270
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x10]
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [edx]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x10002b7b
mov eax, dword [esp + 0xc]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x10002b91
mov ecx, dword [esp + 0x10]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
lea edx, [ecx + 0x30]
add dword [esp + 0xc], esi
test ebx, ebx
jg 0x10002af0
jl 0x10002b91
test edi, edi
jne 0x10002af0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test edx, edx
je 0x10002bd0
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x10002bd6
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, edx
cdq
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edx
test edi, edi
jl 0x10002c3e
jg 0x10002beb
test esi, esi
je 0x10002c3e
test edx, edx
jl 0x10002c39
jg 0x10002bf5
test eax, eax
je 0x10002c39
cmp edi, edx
jg 0x10002c09
jl 0x10002bff
cmp esi, eax
jae 0x10002c09
mov eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [esp + 0x24]
call fcn.10008270
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x14]
add ebx, edx
mov ecx, dword [esp + 0x10]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0xc]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x10002c41
mov ebx, dword [ebp + 8]
jmp 0x10002c4b
mov ebx, dword [ebp + 8]
test edi, edi
jl 0x10002c64
jg 0x10002c4b
test esi, esi
je 0x10002c64
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x10002c64
push eax
push esi
push 1
push ebx
call fcn.1000c0fe
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100031b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10028080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100031e0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006bd3
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000321c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000321c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006bd3
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10003317
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10003244
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10003277
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1000b6bc
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006bd3
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x100032d7
sub eax, 1
je 0x100032d7
sub eax, 2
jne 0x10003317
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.1000b6bc
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006bd3
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100032f4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1000c0fe
add esp, 0x10
cmp edi, eax
jne 0x10003317
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006bd3
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006bd3
mov esp, ebp
pop ebp
ret 4
Function at 0x10003c80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10028080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10003d3a
cmp byte [esi + 0x3d], 0
je 0x10003d3a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10003d28
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10003cf0
sub eax, 1
je 0x10003cf4
sub eax, 2
jne 0x10003d28
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006bd3
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10003d11
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1000c0fe
add esp, 0x10
cmp edi, eax
jne 0x10003d28
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006bd3
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006bd3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10006bd3
mov esp, ebp
pop ebp
ret
Function at 0x10010ca0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10010b16

Function at 0x1001d470
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001d49d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001d49d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40a0b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x40a0be
call fcn.00409cc9
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
invalid

Function at 0x40b1a8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop esp
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.00409d04
or ebx, dword [edi]
xchg edx, eax
stosb byte es:[edi], al
lea eax, [ebp - 0x72c]
push eax
call fcn.00409d14
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00409cc9
add esp, 0xc
mov dword [ebp - 0x6e4], eax
invalid

Function at 0x40e310
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4179c4
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x40e332
shr eax, 1
xor eax, 0xedb88320
jmp 0x40e334
shr eax, 1
dec edx
jne 0x40e320
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40e319
mov byte [0x417dc4], 1
pop esi
pop ebx
ret

Function at 0x40e350
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x417dc4], 0
jne 0x40e367
call fcn.0040e310
mov eax, edi
dec eax
test eax, eax
jl 0x40e390
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4179c4]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x40e371
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4124dc
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403778
xor eax, eax
push ebp
push 0x41254d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00407aec
mov edx, dword [ebp - 8]
mov eax, 0x417fe8
call fcn.00403464
xor eax, eax
mov dword [0x417fe4], eax
push 0
push 0x4123f0
call sub.user32.dll_EnumWindows
mov ebx, dword [0x417fe4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412554
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403434
ret

Function at 0x412562
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push ecx
xor ebx, ebx
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
push esp
push esi
call sub.kernel32.dll_GetExitCodeProcess
test esi, esi
je 0x41258b
mov eax, dword [esp]
push eax
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebx
pop edx
pop esi
pop ebx
ret
Function at 0x401010
Capabilities:
Hide graphical window

Disassembly:
push 0x5c
call 0x4010cd
push ebx
push ecx
push edx
push esi
push edi
push ebp
mov ebp, esp
sub esp, 0x1c
push 0
call dword [sym.imp.KERNEL32.DLL_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.DLL_ShowWindow]
mov dword [ebp - 0x18], 0x780
mov dword [ebp - 0x14], 0x438
mov dword [ebp - 4], 0x1388
cmp dword [ebp - 4], 0
jle 0x4010b9
add dword [ebp - 4], 0xffffffff
call fcn.00401140
mov ecx, 0x14
cdq
idiv ecx
inc edx
mov dword [ebp - 0x10], edx
call fcn.00401140
mov ecx, 0x14
cdq
idiv ecx
inc edx
mov dword [ebp - 0xc], edx
call fcn.00401140
cdq
idiv dword [ebp - 0x18]
mov dword [ebp - 8], edx
push 0xcc0020
push 0
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.USER32.DLL_GetDC]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.USER32.DLL_GetDC]
push eax
call dword [sym.imp.GDI32.DLL_BitBlt]
jmp 0x40104c
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x4011e0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ecx
push esi
push edi
sub esp, 8
mov esi, eax
mov edi, edx
xor edx, edx
mov ecx, eax
inc eax
cmp byte [ecx], 0
je 0x4011f7
inc edx
jmp 0x4011ec
push 0
lea eax, [esp + 4]
push eax
push edx
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
lea eax, [esp + 4]
push eax
push 2
lea eax, [esp + 0x10]
push eax
push 0xfffffffffffffff4
mov word [esp + 0x18], 0xa0d
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, edi
jmp 0x401540
Function at 0x4012a0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov esi, ebx
mov dword [0x408008], eax
mov dword [0x407018], edx
call fcn.00401870
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsA]
mov dword [0x4070b6], eax
xor eax, eax
mov dword [0x408628], eax
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov edx, eax
mov byte [0x4070bc], al
shr eax, 0x10
push 0x104
mov word [0x4070be], ax
xor eax, eax
mov ebx, 0x208
mov ax, word [0x4070be]
and edx, 0xffff
mov dword [0x4070c0], eax
xor eax, eax
sar edx, 8
mov al, byte [0x4070bc]
and edx, 0xff
mov dword [0x4070c4], eax
xor eax, eax
mov byte [0x4070bd], dl
mov al, dl
mov edx, dword [0x4070c4]
push 0x40800c
shl edx, 8
push 0
or edx, eax
mov dword [0x4070c8], eax
mov dword [0x4070cc], edx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x408110
xor eax, eax
mov dword [0x407084], 0x40800c
call fcn.004019a0
mov dword [0x407090], 0x408110
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.00401a40
mov edx, eax
mov bl, byte [eax]
mov dword [0x408004], eax
cmp bl, 0x22
je 0x401394
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x401a81], 2
je 0x4013ac
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x401a81], 2
je 0x4013b3
inc eax
jmp 0x401384
inc eax
cmp bl, byte [eax]
je 0x4013a4
cmp byte [eax], 0
je 0x4013a4
inc eax
cmp byte [eax], 0x22
jne 0x401399
cmp byte [eax], 0
je 0x401384
inc eax
jmp 0x401384
test dl, dl
je 0x401384
inc eax
jmp 0x401377
mov dword [0x407080], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
test eax, eax
je 0x401427
call fcn.00401b81
mov edx, eax
mov bx, word [eax]
mov dword [0x408000], eax
cmp bx, 0x22
je 0x4013fa
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x401a81], 2
je 0x40141c
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x401a81], 2
je 0x40142c
add eax, 2
jmp 0x4013e8
add eax, 2
cmp bx, word [eax]
je 0x401411
cmp word [eax], 0
je 0x401411
add eax, 2
cmp word [eax], 0x22
jne 0x401402
cmp word [eax], 0
je 0x4013e8
add eax, 2
jmp 0x4013e8
cmp word [eax], 0
je 0x4013e8
add eax, 2
jmp 0x4013db
mov eax, 0x401260
mov dword [0x40708c], eax
test edi, edi
jne 0x40143e
mov eax, 1
pop edi
pop esi
pop ecx
ret
push 0x104
push 0x408318
push esi
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x40841c
mov eax, esi
mov dword [0x407088], 0x408318
call fcn.004019a0
mov dword [0x407094], 0x40841c
mov eax, 1
pop edi
pop esi
pop ecx
ret
Function at 0x4039b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edx
sub esp, 4
mov dword [esp], eax
mov eax, dword [0x4071dc]
test eax, eax
je 0x4039cc
cmp dword [0x40707c], 0xfffffffe
jne 0x4039d2
xor eax, eax
add esp, 4
pop edx
pop ecx
ret
mov eax, esp
call fcn.00403960
test eax, eax
je 0x4039cc
push 0x40
push 0x1000
mov ecx, dword [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov edx, eax
test eax, eax
je 0x4039cc
mov eax, dword [esp]
sub eax, 4
cmp eax, dword [esp]
ja 0x4039ca
mov dword [esp], eax
cmp eax, 0x38
jb 0x4039ca
mov dword [edx], eax
mov eax, edx
call fcn.004038e0
mov ecx, eax
mov eax, dword [eax]
mov dword [esp], eax
or al, 1
mov dword [ecx], eax
mov dword [edx + 0x14], 0
lea eax, [ecx + 4]
inc dword [edx + 0x18]
call fcn.00401bb0
mov eax, 1
add esp, 4
pop edx
pop ecx
ret

Function at 0x404330
Capabilities:
Set environment variable

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
sub esp, 0x14
mov ebp, eax
mov dword [esp], 2
mov edx, 0x3d
mov dword [esp + 4], 1
call fcn.00404820
mov ebx, eax
test eax, eax
je 0x40435e
cmp eax, ebp
jne 0x40436d
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
sub eax, ebp
mov dword [esp + 0xc], eax
inc eax
call fcn.00402bf0
mov edx, eax
mov dword [esp + 8], eax
test eax, eax
je 0x40435e
mov ecx, dword [esp + 0xc]
mov esi, ebp
mov edi, eax
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [esp + 0xc]
lea esi, [ebx + 1]
mov byte [edx + eax], 0
mov eax, esi
call fcn.00404880
mov ebx, eax
test eax, eax
je 0x404433
inc eax
call fcn.00402bf0
mov dword [esp + 0x10], eax
test eax, eax
je 0x40441d
mov ecx, ebx
mov edi, eax
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
add ebx, edi
mov byte [ebx], 0
mov edx, dword [esp + 0x10]
push edx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
mov edx, eax
mov eax, dword [esp + 8]
call fcn.00401bb0
mov eax, dword [esp + 0x10]
call fcn.00401bb0
test edx, edx
jne 0x404439
cmp dword [esp + 0x10], 0
jne 0x40435e
xor eax, eax
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, edx
call fcn.00401bb0
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov dword [esp + 0x10], eax
jmp 0x4043de
mov eax, ebp
call fcn.004045c0
test eax, eax
jne 0x40435e
cmp dword [0x40862c], 0
je 0x404363
mov eax, ebp
call fcn.00404880
lea ebx, [eax + 1]
mov eax, dword [esp]
imul eax, ebx
call fcn.00402bf0
mov ecx, eax
test eax, eax
je 0x4044a1
imul ebx, dword [esp + 4]
mov edx, ebp
call fcn.004048b0
cmp eax, 0xffffffff
jne 0x4044ba
mov eax, ecx
call fcn.00401bb0
mov eax, 0xe
call fcn.00402cea
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, 5
call fcn.00402cea
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, ecx
call fcn.00404b50
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x40b050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x435008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.00418d90
add esp, 0xc
mov dword [ebp - 0x228], 0x381d
mov dword [ebp - 0x210], 0x3333
mov dword [ebp - 0x214], 0x42ff
mov dword [ebp - 0x21c], 0x1194c
mov dword [ebp - 0x218], 0x12173
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
push 0xe
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
jmp 0x40b2a7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004176dc
mov esp, ebp
pop ebp
ret
Function at 0x4175d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
push eax
call fcn.00416320
add esp, 4
xor eax, eax
pop ebp
ret

Function at 0x417f24
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x417f63
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x417f63
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417f63
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x417f63
cmp dword [ecx + 0x74], 0xe
jbe 0x417f63
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4217d8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42edb8
push 0x42edb0
push str.FlsAlloc
push 0x1f
call fcn.00421697
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42180c
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d1e4]
call esi
jmp 0x421812
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x421856
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42edc8
push 0x42edc0
push str.FlsGetValue
push 0x21
call fcn.00421697
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42188d
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d1e4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x421895
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42edd0
push 0x42edc8
push str.FlsSetValue
push 0x22
call fcn.00421697
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4218cf
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42d1e4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]