joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409840
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [0x40e300]
cmp ebx, eax
jae 0x40986d
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x40e304]
test byte [edx + eax*8 + 4], 1
jne 0x40987f
mov dword [0x40d334], 9
or eax, 0xffffffff
jmp 0x40999c
push 1
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x4098a7
push 2
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x4098af
or eax, 0xffffffff
jmp 0x40999c
mov eax, dword [ebp + 0xc]
neg edi
add edi, eax
jle 0x409941
push 0x1000
push 1
call fcn.00409e10
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x40993b
push 0x8000
push ebx
call fcn.00409e70
add esp, 8
mov dword [ebp - 8], eax
mov eax, 0x1000
cmp edi, 0x1000
jge 0x4098f2
mov eax, edi
mov edx, eax
push edx
mov eax, dword [ebp - 4]
push eax
push ebx
call fcn.004074e0
add esp, 0xc
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x409910
or dword [ebp - 0xc], 0xffffffff
jmp 0x409922
mov eax, edi
sub eax, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0xc], 0
test eax, eax
jg 0x4098e3
mov eax, dword [ebp - 8]
push eax
push ebx
call fcn.00409e70
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.004040b0
pop ecx
jmp 0x40998d
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
mov dword [ebp - 0xc], 0
test edi, edi
jge 0x40998d
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00408af0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x409966
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
push ebx
call fcn.00407980
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0xc], 0
test eax, eax
jne 0x40998d
mov dword [0x40d334], 0xd
or dword [ebp - 0xc], 0xffffffff
push 0
push esi
push ebx
call fcn.00408af0
add esp, 0xc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40153a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
push edi
call sub.KERNEL32.dll_GetTickCount
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.dll_GetTempPathA
cmp byte [ebp - 0x104], 0
jne 0x4016a4
sbb al, 0x9c
pop es
add byte [edi + 0x5e], bl
pop ebx
pop ebp
ret 8
cmp byte [ebp - 0x104], 0
jne 0x4017f1
inc ebp
in al, dx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x44498f
push 0
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_GetFileAttributesExA
call sub.KERNEL32.dll_GetLastError
mov edi, eax
cmp dword [0x42406a], 0
je 0x40181c
mov ebx, edi
add ebx, edi
jmp 0x40181e
mov ebx, edi
mov esi, ebx
and esi, 0xffffffa8
or edi, edi
jne 0x40197b
test eax, eax
jne 0x5b334f
push dword [ebp + 0x10]
push edi
push esi
call fcn.004016d9
mov esi, eax
lea ecx, [ebp - 0x18]
call 0x44d3b6
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call 0x4b56f9
leave
ret 0xc
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x414fb0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x41515a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x41
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x9e
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x27
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x5b
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xdb
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0xbf
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x9a
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xac
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x5a
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xf0
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xd8
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xdf
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x94
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xe2
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xa1
add esp, 0x30
inc esi
cmp esi, edi
jb 0x414fd0
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x453329
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45333a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c7e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c7f3
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c6c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c81b
push ebx
push esi
push edi
call fcn.00405713
add esp, 0xc
push 0
call fcn.00406262
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x402180
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
jmp 0x4021bf
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x10], ecx
jge 0x4022db
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x40224c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jle 0x402247
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x30]
push eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402220
xor eax, eax
jmp 0x4022e0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00413280
add esp, 0xc
jmp 0x4021ad
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00402160
add esp, 8
test eax, eax
jne 0x40226d
xor eax, eax
jmp 0x4022e0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x30]
push edx
push 4
push 0x1000
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4022a4
xor eax, eax
jmp 0x4022e0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0040b430
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
jmp 0x4021ad
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x416c6b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x50e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00410aa2
mov dword [ebp - 0x14], eax
cmp dword [0x510344], esi
jne 0x416d5e
push 0x800
push esi
push 0x4203cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x416ceb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x416e3e
push esi
push esi
push 0x4203cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x416e3e
push 0x4203e4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416e3e
push eax
call ebx
push 0x4203f0
push edi
mov dword [0x510344], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x420400
push edi
mov dword [0x510348], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x420414
push edi
mov dword [0x51034c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x510354], eax
test eax, eax
je 0x416d5b
push 0x420430
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x510350], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416d83
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416d76
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x416d98
push 4
pop eax
jmp 0x416e40
cmp dword [ebp - 0x14], esi
je 0x416d98
push dword [0x510344]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416d7d
mov eax, dword [0x510350]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x416df6
cmp dword [0x510354], edi
je 0x416df6
push eax
call ebx
push dword [0x510354]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x416df6
test eax, eax
je 0x416df6
call ecx
test eax, eax
je 0x416deb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x416deb
test byte [ebp - 8], 1
jne 0x416df6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x416e26
mov eax, dword [0x510348]
cmp eax, edi
je 0x416e23
push eax
call ebx
test eax, eax
je 0x416e23
call eax
mov esi, eax
test esi, esi
je 0x416e23
mov eax, dword [0x51034c]
cmp eax, edi
je 0x416e23
push eax
call ebx
test eax, eax
je 0x416e23
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x510344]
call ebx
test eax, eax
je 0x416e3e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x416e40
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a10c
mov esp, ebp
pop ebp
ret
Function at 0x438cb3
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
dec esi
or edx, esi
dec esi
call fcn.00438ceb
or esi, edx
xor dword [ebx], eax
push esi
pop esi
add ebx, 1
push edx
pop edx
dec esi
add esi, esi
cmp ebx, ecx
jne fcn.00438cb3
add edx, 0x3fa632fd
add esi, 0x240cedb4
ret
Function at 0x4057ce
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40581f
xor eax, eax
jmp 0x405846
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405846
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40581b
call esi
pop esi
leave
ret 4

Function at 0x405880
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7a4f28], 0x44
push eax
xor eax, eax
push 0x7a4f28
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4058bf
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4058c3
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405961
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d68
mov edi, eax
cmp edi, 0xffffffff
je 0x4059a2
test byte [esp + 0x10], 1
push esi
je 0x405984
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40598a
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405993
xor eax, eax
inc eax
jmp 0x4059a4
test byte [esp + 0x10], 4
jne 0x4059a2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x1003a000
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d3368
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x78
mov eax, dword [0x100fc8f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [ebp + 0xc], 1
jne 0x1003a145
push 0x24
push 0
push 0x10112450
call fcn.100a5130
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [0x1011246c], eax
mov ecx, dword [0x1011246c]
mov dword [0x10112400], ecx
mov dword [0x10112450], 2
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.1007b7b0
add esp, 8
mov eax, dword [0x1011240c]
mov ecx, dword [0x1011240c]
mov edx, dword [eax + 0x34]
xor edx, dword [ecx + 0x2c]
mov eax, dword [0x1011240c]
xor edx, dword [eax + 4]
and edx, 0x40000
je 0x1003a136
mov cl, byte [0x100fe10a]
mov byte [ebp - 0x58], cl
push 0x3f
push 0
lea edx, [ebp - 0x57]
push edx
call fcn.100a5130
add esp, 0xc
push 0x40
lea eax, [ebp - 0x58]
push eax
push 0x100fe0f8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1003a0da
lea ecx, [ebp - 0x58]
push ecx
call fcn.1003a270
add esp, 4
mov dword [0x10112580], eax
push fcn.10044110
lea edx, [ebp - 0x7c]
push edx
call fcn.1003a310
add esp, 8
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x88], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x88]
call fcn.1003eed0
push eax
push 0x100fe0f8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.1003ee90
mov eax, 1
jmp 0x1003a249
call fcn.10044110
jmp 0x1003a249
cmp dword [ebp + 0xc], 0
jne 0x1003a204
mov ecx, dword [0x1011240c]
mov edx, dword [0x1011240c]
mov eax, dword [ecx + 0x34]
xor eax, dword [edx + 0x2c]
mov ecx, dword [0x1011240c]
xor eax, dword [ecx + 4]
and eax, 0x40000
je 0x1003a18a
push 0
push 0x100fe0f8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov eax, 1
jmp 0x1003a249
mov dword [ebp - 4], 1
mov dword [ebp - 0x5c], 1
cmp dword [0x10112470], 0
je 0x1003a1d0
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x10112470]
mov dword [ebp - 0x5c], eax
jmp 0x1003a1c9
mov dword [ebp - 4], 1
call fcn.100440e0
mov eax, dword [ebp - 0x5c]
jmp 0x1003a249
mov dword [ebp - 0x60], 1
cmp dword [0x10112470], 0
je 0x1003a246
mov dword [ebp - 4], 5
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x10112470]
mov dword [ebp - 0x60], eax
jmp 0x1003a23f
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100a5605
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10043430
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xf8
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x78]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 0
jmp 0x1004349c
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x18]
jae 0x100434e3
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.100a9db1
add esp, 8
test eax, eax
jne 0x100434e1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x100434e5
jmp 0x10043493
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10044110
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100fc8f0]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0
push 0x100fe0f8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp dword [0x10112580], 0
je 0x10044159
mov eax, dword [0x10112580]
mov dword [ebp - 8], eax
mov dword [0x10112580], 0
call dword [ebp - 8]
test eax, eax
jne 0x10044159
xor eax, eax
jmp 0x10044241
call fcn.10044020
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jne 0x100441b6
cmp dword [0x10112470], 0
je 0x100441a7
push 0x10112598
push 1
mov ecx, dword [0x10112400]
push ecx
call dword [0x10112470]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1004419b
call fcn.100440e0
xor eax, eax
jmp 0x10044241
mov eax, 1
jmp 0x10044241
mov eax, 1
jmp 0x10044241
cmp dword [ebp - 4], 0
jne 0x10044237
call fcn.100420e0
push eax
push 0x100
lea edx, [ebp - 0x110]
push edx
call fcn.100a9ee5
add esp, 0xc
call fcn.10042100
push eax
call fcn.100a56e0
add esp, 4
test eax, eax
je 0x1004421b
push 0x100fea84
push 0x100
lea eax, [ebp - 0x110]
push eax
call fcn.100a9e74
add esp, 0xc
call fcn.10042100
push eax
push 0x100
lea ecx, [ebp - 0x110]
push ecx
call fcn.100a9e74
add esp, 0xc
push 0x40010
push 0
lea edx, [ebp - 0x110]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x10044241
push 3
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.100a5605
mov esp, ebp
pop ebp
ret

Function at 0x1004b230
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x100fc8f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.10046090
add esp, 4
movzx edx, al
test edx, edx
je 0x1004b2c1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea ecx, [ebp - 0x2d8]
push ecx
call fcn.100a5130
add esp, 0xc
mov dword [ebp - 0x2d8], 0x10001
lea edx, [ebp - 0x2d8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1004b2bf
mov edx, dword [ebp - 0x220]
cmp edx, dword [ebp + 0xc]
jne 0x1004b2bf
jmp 0x1004b2c1
jmp 0x1004b243
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a5605
mov esp, ebp
pop ebp
ret

Function at 0x1005af60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x1005afc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x1005afb7
mov edx, dword [0x10112958]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1005afab
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1005af90
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x1005afb9
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x1007b3a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d6aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x100fc8f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movsx eax, byte [0x101133a0]
test eax, eax
jne 0x1007b3d5
call fcn.1007b210
movzx ecx, byte [0x10113399]
test ecx, ecx
jne 0x1007b48f
movzx edx, byte [0x10113398]
test edx, edx
jne 0x1007b48f
cmp dword [0x101134a4], 0
je 0x1007b438
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [0x101134a4]
push ecx
call fcn.10083a70
add esp, 8
mov dword [ebp - 0x10], eax
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0x186
mov eax, dword [0x101134a4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x101134a4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x1007b48f
push 0x101133a0
lea ecx, [ebp - 0x74]
call fcn.1007f6c0
mov dword [ebp - 4], 0
push 0x10001
lea edx, [ebp - 0x74]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10083880
add esp, 0x10
xor edx, edx
cmp eax, 2
sete dl
mov byte [ebp - 0x11], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.10043ed0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x1007b48f
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret