joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402710
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4251ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
mov eax, dword [ecx + 0x14]
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x10], ecx
jne 0x402839
push 0x15
push 0x42835c
call fcn.00402370
add esp, 8
mov esi, eax
lea eax, [esp + 0x28]
push 0x12c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push esi
call fcn.0041bfde
add esp, 4
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4027a2
lea edx, [esp + 0x28]
push edx
call fcn.0041afa0
add esp, 4
cmp eax, ebx
jne 0x4027a2
push ebx
push str.Error
push str.Failed_to_create_essential_directory._Run_as_administrator..._or_else_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402922
push 7
push 0x42830c
call fcn.00402370
push 8
push 0x428300
mov edi, eax
call fcn.00402370
push 9
push 0x4282f4
mov ebp, eax
call fcn.00402370
add esp, 0x18
mov dword [esp + 0x24], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
lea eax, [esp + 0x28]
push eax
push ebp
push 0x82
push esi
call fcn.00402610
lea ecx, [esp + 0x38]
push ecx
push edi
push 0x83
push esi
call fcn.00402610
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x48]
push edx
push eax
push 0x81
push esi
call fcn.00402610
mov ecx, dword [esp + 0x40]
push ebp
mov dword [ecx + 0x14], 1
call fcn.0041bfde
push edi
call fcn.0041bfde
mov edx, dword [esp + 0x5c]
push edx
call fcn.0041bfde
mov ecx, dword [esp + 0x4c]
add esp, 0x3c
mov eax, dword [esp + 0x164]
mov ecx, dword [ecx + 8]
mov edx, dword [0x426184]
shl eax, 4
add eax, ecx
push edx
push ebx
push eax
mov cl, byte [eax]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00401d30
mov al, byte [esp + 0x14]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x20], esp
mov dword [esp + 0x16c], ebx
mov byte [ecx], al
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov edx, dword [0x426184]
lea eax, [esp + 0x24]
push edx
push ebx
push eax
call fcn.00401d30
call fcn.00402940
mov dl, byte [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
mov byte [ecx], dl
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov eax, dword [0x426184]
lea edx, [esp + 0x24]
push eax
push ebx
push edx
call fcn.00401d30
call fcn.004032a0
mov al, byte [esp + 0x24]
mov esi, esp
mov dword [esp + 0x20], esp
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.00401f30
mov ecx, dword [0x426184]
lea edx, [esp + 0x24]
push ecx
push ebx
push edx
mov ecx, esi
call fcn.00401d30
call fcn.00402c20
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, ebx
je 0x402922
mov cl, byte [eax - 1]
cmp cl, bl
je 0x402918
cmp cl, 0xff
je 0x402918
dec cl
mov byte [eax - 1], cl
jmp 0x402922
dec eax
push eax
call fcn.0041b142
add esp, 4
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x150
ret 4
Function at 0x409490
Capabilities:
Hash data using murmur3

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
mov eax, edi
mov ebx, dword [esp + 0x10]
shr eax, 0x10
xor eax, edi
imul eax, eax, 0x85ebca6b
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
mov eax, dword [esp + 0x14]
imul ecx, ecx, 0xc2b2ae35
lea edx, [eax - 1]
mov eax, ecx
shr eax, 0x10
xor eax, ecx
and eax, edx
xor esi, esi
mov ecx, dword [ebx + eax*4]
test ecx, ecx
je 0x4094e3
cmp ecx, edi
je 0x4094dd
lea eax, [esi + eax + 1]
and eax, edx
inc esi
cmp esi, edx
jbe 0x4094c7
pop edi
pop esi
xor al, al
pop ebx
ret
mov dword [ebx + eax*4], edi
pop edi
pop esi
mov al, 1
pop ebx
ret

Function at 0x40a6f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
mov cl, byte [edx]
test cl, cl
je 0x40a716
movsx ecx, cl
add eax, ecx
inc edx
mov ecx, eax
shl ecx, 0xa
add eax, ecx
mov ecx, eax
shr ecx, 6
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x40a6fc
lea eax, [eax + eax*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
mov eax, ecx
shl eax, 0xf
add eax, ecx
ret
Function at 0x413e10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x425508
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x34]
push esi
mov esi, ecx
push eax
mov ecx, dword [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040ba50
push esi
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0
call fcn.0040b6c0
lea edx, [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.00413c20
mov esi, dword [esp + 0x30]
mov ecx, dword [eax]
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], ecx
mov edx, dword [eax + 4]
lea ecx, [esp + 0x14]
mov dword [esi + 4], edx
call fcn.0040f380
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
Function at 0x41a250
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, dword [esp + 0x6c]
test esi, esi
push edi
mov ebx, ecx
je 0x41a467
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x68]
movsx ecx, byte [ebx + 3]
mov eax, dword [esi]
and eax, 0xf
dec ecx
cmp ecx, 7
ja case.default.0x41a280
jmp dword [ecx*4 + 0x41a474]
cmp eax, 2
jne case.default.0x41a280
mov eax, dword [esi + 4]
test eax, eax
je case.default.0x41a280
mov ecx, dword [ebx + 0x10]
push ecx
push eax
call fcn.004036a0
add esp, 8
test al, al
je case.default.0x41a280
push esi
lea ecx, [esp + 0x74]
call fcn.00408060
push eax
lea ecx, [esp + 0x28]
call fcn.0040b6c0
lea edx, [esp + 0x24]
push edi
push edx
mov ecx, ebp
call fcn.00413340
mov al, 1
jmp 0x41a454
push esi
lea ecx, [esp + 0x78]
call fcn.00408060
push eax
lea ecx, [esp + 0x30]
call fcn.0040b6c0
lea eax, [esp + 0x2c]
push edi
push eax
mov ecx, ebp
call fcn.00413340
mov al, 1
jmp 0x41a454
cmp eax, 5
jne case.default.0x41a280
push esi
lea ecx, [esp + 0x6c]
call fcn.00408060
push eax
lea ecx, [esp + 0x38]
call fcn.0040b6c0
lea ecx, [esp + 0x34]
push edi
push ecx
mov ecx, ebp
call fcn.00413340
mov al, 1
jmp 0x41a454
cmp eax, 3
je 0x41a33f
cmp eax, 4
jne case.default.0x41a280
push esi
lea ecx, [esp + 0x14]
call fcn.00408060
push eax
lea ecx, [esp + 0x40]
call fcn.0040b6c0
lea edx, [esp + 0x3c]
push edi
push edx
mov ecx, ebp
call fcn.00413340
mov al, 1
jmp 0x41a454
cmp eax, 6
jne case.default.0x41a280
push esi
lea ecx, [esp + 0x18]
call fcn.00408060
push eax
lea ecx, [esp + 0x48]
call fcn.0040b6c0
lea eax, [esp + 0x44]
push edi
push eax
mov ecx, ebp
call fcn.00413340
mov al, 1
jmp 0x41a454
cmp eax, 6
jne case.default.0x41a280
mov eax, dword [esi + 4]
test eax, eax
je case.default.0x41a280
mov ecx, dword [ebx + 0x10]
push ecx
push eax
call fcn.004036a0
add esp, 8
test al, al
je case.default.0x41a280
push esi
lea ecx, [esp + 0x1c]
call fcn.00408060
push eax
lea ecx, [esp + 0x50]
call fcn.0040b6c0
lea edx, [esp + 0x4c]
push edi
push edx
mov ecx, ebp
call fcn.00413340
mov al, 1
jmp 0x41a454
cmp eax, 2
jne case.default.0x41a280
push esi
lea ecx, [esp + 0x20]
call fcn.00408060
push eax
lea ecx, [esp + 0x58]
call fcn.0040b6c0
lea eax, [esp + 0x54]
push edi
push eax
mov ecx, ebp
call fcn.00413340
mov al, 1
jmp 0x41a454
cmp eax, 2
jne case.default.0x41a280
mov eax, dword [esi + 4]
test eax, eax
je case.default.0x41a280
mov ecx, dword [ebx + 0x10]
push ecx
push eax
call fcn.004094f0
add esp, 8
test al, al
je case.default.0x41a280
push esi
lea ecx, [esp + 0x24]
call fcn.00408060
push eax
lea ecx, [esp + 0x60]
call fcn.0040b6c0
lea edx, [esp + 0x5c]
push edi
push edx
mov ecx, ebp
call fcn.00413340
mov al, 1
jmp 0x41a454
xor al, al
mov cl, byte [esp + 0x78]
test cl, al
jne 0x41a467
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x41a26d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x18
Function at 0x41afa0
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
mov eax, dword [esp + 0x108]
push ebx
push esi
push edi
push 0x103
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.0041c9b0
mov al, byte [esp + 0x19]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
test al, al
mov byte [esp + 0x10f], 0
lea esi, [esp + 0xd]
je 0x41b00c
cmp byte [esi], 0x5c
jne 0x41b004
lea edx, [esp + 0xc]
push 0
push edx
mov byte [esi], 0
call edi
test eax, eax
jne 0x41b001
call ebx
cmp eax, 0xb7
jne 0x41b022
mov byte [esi], 0x5c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x41afe3
lea eax, [esp + 0xc]
push 0
push eax
call edi
test eax, eax
jne 0x41b02e
call ebx
cmp eax, 0xb7
je 0x41b02e
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret

Function at 0x41b040
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x12c
push ebx
push esi
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41b0ec
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [esp + 0x140]
lea eax, [esp + 0x38]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41b0b1
test cl, cl
je 0x41b0ad
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41b0b1
add eax, 2
add esi, 2
test cl, cl
jne 0x41b08d
xor eax, eax
jmp 0x41b0b6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41b0d3
mov eax, dword [esp + 0x1c]
push eax
push 0
push 1
call edi
mov esi, eax
test esi, esi
je 0x41b0d3
push 9
push esi
call ebp
push esi
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41b082
mov esi, dword [esp + 0x10]
pop edi
pop ebp
push esi
call ebx
pop esi
pop ebx
add esp, 0x12c
ret
Function at 0x422809
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4294d8
cmp edx, dword [eax]
je 0x42282b
add eax, 8
inc ecx
cmp eax, 0x429568
jl 0x42281c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4294d8]
jne 0x422959
mov eax, dword [0x42a208]
cmp eax, 1
je 0x422933
test eax, eax
jne 0x42285c
cmp dword [0x428d34], 1
je 0x422933
cmp edx, 0xfc
je 0x422959
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x422893
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00420d50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041cca0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4228d6
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041cca0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x426b04
push edi
call fcn.0041c9b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00420d50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00420d60
lea eax, [ebp - 0xa0]
push 0x426ae4
push eax
call fcn.00420d60
push dword [esi + 0x4294dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00420d60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00424512
add esp, 0x2c
pop edi
jmp 0x422959
lea eax, [ebp + 8]
lea esi, [esi + 0x4294dc]
push 0
push eax
push dword [esi]
call fcn.0041cca0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x409581
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a344]
jne 0x40958b
repz ret
jmp fcn.0040df6c

Function at 0x41219c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b60f
and dword [ebp - 0x14], 0
cmp dword [0x46b52c], 0
mov dword [ebp - 0x18], eax
jne 0x41224f
push 0x403784
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4122f7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403778
push ebx
call edi
test eax, eax
je 0x4122f7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403768
push ebx
mov dword [0x46b52c], eax
call edi
push eax
call esi
push 0x403754
push ebx
mov dword [0x46b530], eax
call edi
push eax
call esi
push 0x403738
push ebx
mov dword [0x46b534], eax
call edi
push eax
call esi
mov dword [0x46b53c], eax
test eax, eax
je 0x41224f
push 0x403720
push ebx
call edi
push eax
call esi
mov dword [0x46b538], eax
mov eax, dword [0x46b538]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4122a8
cmp dword [0x46b53c], ecx
je 0x4122a8
push eax
call esi
push dword [0x46b53c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4122a8
test ebx, ebx
je 0x4122a8
call edi
test eax, eax
je 0x41229f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41229f
test byte [ebp - 8], 1
jne 0x4122a8
or dword [ebp + 0x10], 0x200000
jmp 0x4122db
mov eax, dword [0x46b530]
cmp eax, dword [ebp - 0x18]
je 0x4122db
push eax
call esi
test eax, eax
je 0x4122db
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4122db
mov eax, dword [0x46b534]
cmp eax, dword [ebp - 0x18]
je 0x4122db
push eax
call esi
test eax, eax
je 0x4122db
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46b52c]
call esi
test eax, eax
je 0x4122f7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4122f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409581
leave
ret
Function at 0x4140d0
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.00413770
cmp dword [0x80b684], 0x37
jne 0x414161
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x403f50
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x403f70
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
lea edx, [esp + 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x80c268]
mov edx, dword [0x8086e4]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x401cf2
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x42f040]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x28], ecx
mov ecx, ebx
push edi
mov dword [esp + 0x1c], edx
xor edx, edx
mov byte [esp + ecx + 0x30], cl
push 0x17
mov eax, ecx
pop edi
div edi
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x130], al
inc ecx
cmp ecx, 0x100
jl 0x401d1e
mov edi, ebx
mov esi, ebx
mov dl, byte [esp + esi + 0x30]
movzx eax, byte [esp + esi + 0x130]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x401d65
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x30]
mov byte [esp + esi + 0x30], al
inc esi
mov byte [esp + edi + 0x30], dl
cmp esi, 0x100
jl 0x401d42
mov edi, ebx
mov dword [esp + 0x20], ebx
mov eax, ebx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x1c]
mov esi, 0x3e8
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], edi
cmp eax, edi
je 0x401daa
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x14], eax
jmp 0x401dc1
lea ecx, [esp + 0x1c]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404cb2
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub esi, 1
jne 0x401d9b
mov eax, dword [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
cmp dword [eax], ebx
jle 0x401e54
mov edi, eax
inc ebx
and ebx, 0x800000ff
jns 0x401deb
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [esp + ebx + 0x30]
mov esi, dword [esp + 0x20]
movzx edx, cl
add esi, edx
and esi, 0x800000ff
jns 0x401e08
dec esi
or esi, 0xffffff00
inc esi
mov al, byte [esp + esi + 0x30]
mov byte [esp + ebx + 0x30], al
mov byte [esp + esi + 0x30], cl
movzx eax, byte [esp + ebx + 0x30]
add eax, edx
mov dword [esp + 0x20], esi
movzx esi, al
mov eax, esi
xor eax, 0x12
push eax
call fcn.00402a86
push eax
call fcn.00403dde
mov edx, dword [esp + 0x30]
mov al, byte [esp + esi + 0x34]
pop ecx
mov ecx, dword [esp + 0x24]
xor byte [edx + ecx], al
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, dword [edi]
jl 0x401dda
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
sub edi, eax
and edi, 0xfffffffc
push edi
push eax
call fcn.004046a5
pop ecx
pop ecx
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408342
mov esp, ebp
pop ebp
ret
Function at 0x402047
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x42f040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [0x489548]
xor ebx, ebx
push edi
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4020b7
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.00402bc9
lea ecx, [esp + 0x1c]
call fcn.00401e77
cmp eax, dword [esp + 0x10]
je 0x4020ce
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00403485
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x402087
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408342
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00403e10
push eax
call fcn.00404089
mov edx, dword [esp + 0x1c]
pop ecx
mov eax, dword [edx + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00403485
jmp 0x4020b9
Function at 0x406290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4062b1
jl 0x4062a8
test edi, edi
jne 0x4062b1
xor eax, eax
xor edx, edx
jmp 0x406372
cmp dword [ebx + 0x38], 0
je 0x4062c6
push eax
push edi
push dword [ebp + 8]
call fcn.00406378
jmp 0x406372
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40630d
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40630d
cmp eax, edi
jb 0x4062e7
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00409330
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x406313
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x406367
mov ecx, ebx
call fcn.00405adf
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x406352
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040fc4f
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x406367
jmp 0x406325
test edx, edx
je 0x406367
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040fc4f
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x409116
Capabilities:
Parse pe header

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

Function at 0x417c10
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428148
push 0x428140
push str.FlsAlloc
push 0x1e
call fcn.00417af9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417c44
push dword [ebp + 8]
mov ecx, esi
call dword [0x424130]
call esi
jmp 0x417c4a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x417c8e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428158
push 0x428150
push str.FlsGetValue
push 0x20
call fcn.00417af9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417cc5
push dword [ebp + 8]
mov ecx, esi
call dword [0x424130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x419193
Capabilities:
Read file on windows

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

Function at 0x41919e
Capabilities:
Read file on windows

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

Function at 0x419598
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409280
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004164f5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4195da
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419736
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004235b0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x489140]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a768
mov ecx, dword [esi*4 + 0x489140]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41972f
cmp eax, dword [edi + ecx + 0x24]
jne 0x41972f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41972f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a768
add esp, 0x14
test edx, edx
jl 0x41972f
jg 0x4196a5
test eax, eax
jb 0x41972f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41972f
jl 0x4196bf
cmp dword [ebp - 0x1008], eax
ja 0x41972f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4196dd
test ebx, ebx
je 0x419716
cmp ecx, edi
jae 0x419716
mov al, byte [ecx]
cmp al, 0xd
jne 0x4196f7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x419703
cmp byte [ecx + 1], 0xa
jne 0x419703
inc ecx
jmp 0x419703
movzx eax, al
movsx eax, byte [eax + 0x42f300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4196dd
cmp edx, ebx
jne 0x4196dd
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419734
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408342
leave
ret