joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45016a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4aba58]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4501b0
cmp word [ebx], dx
jne 0x4501b0
or byte [eax + edi + 0x28], 4
jmp 0x4501b5
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x450318
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4502f8
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4501f6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45022c
cmp eax, edx
jae 0x45023a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4501d1
jmp 0x450318
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4502f3
cmp dword [ebp - 0x18], 0
je 0x4502f3
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4aba58]
test byte [eax + edi + 0x28], 0x48
je 0x4502c9
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x45028d
mov word [esi], cx
jmp 0x4502c4
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4aba58]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4aba58]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4aba58]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x450318
pop eax
cmp word [ebp - 4], ax
jne 0x4502d9
cmp esi, ebx
jne 0x4502d9
mov word [esi], ax
jmp 0x450315
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00450ba3
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x450318
push 0xd
pop eax
jmp 0x4502d4
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4aba58]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x450312
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x450318
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x456050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45607d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45607d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402b30
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408730
add esp, 0xc
lea eax, [ebp - 0x410]
push 0x200
push 0
push eax
call fcn.00408730
add esp, 0xc
lea ecx, [ebp - 0x410]
call fcn.00402010
test eax, eax
je 0x402c86
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ecx + 0x416890]
mov word [ecx + 0x41a018], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402b90
xor ecx, ecx
jmp 0x402bb0
movzx eax, word [ebp + ecx - 0x38a]
mov word [ecx + 0x41a120], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402bb0
xor ecx, ecx
lea esp, [esp]
movzx eax, word [ebp + ecx - 0x40c]
mov word [ecx + 0x41a0a0], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x402bd0
cmp dword [0x418f08], 3
movzx eax, word [ebp - 0x38c]
mov word [0x41a098], ax
movzx eax, word [ebp - 0x2ea]
mov word [0x41a010], ax
mov dword [0x41a00c], 5
lea eax, [ebp - 0x210]
je 0x402c28
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402c4d
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x416aa8
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404ceb
add esp, 0xc
push 0x4169a8
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404ceb
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00404b4a
mov esp, ebp
pop ebp
ret

Function at 0x402ca0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
mov dword [0x418f08], 0
call fcn.00408730
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402d5d
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x402d21
mov eax, dword [ebp - 0x118]
cmp eax, 2
jae 0x402d09
cmp eax, 1
jne 0x402d5d
mov dword [0x418f08], 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x402d5d
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x402d48
mov dword [0x418f08], 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
mov eax, dword [0x418f08]
mov edx, 5
cmp ecx, 1
cmove eax, edx
mov dword [0x418f08], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x401224
Capabilities:
Authenticate hmac

Disassembly:
push 0x401334
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
pushal
add byte [eax], al
add byte [eax], al
add byte [eax], al
inc eax
jge 0x40123e
sub edi, ebp
sub ch, dl
dec eax
mov dh, 0x5c
stosb byte es:[edi], al
das
pop ecx
and byte [eax], 0xd0
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
sub eax, 0x30303043
sub eax, 0x7a667572
push 0x64796a78
add byte [esi + esi], dh
jge 0x401291
xor ch, byte [esi]
outsd dx, dword [esi]
xor dh, byte [ebx]
xor byte [ecx + edi], dh
xor dh, byte [ebx]
xor byte [0x35333234], dh
push 0x33
imul esi, dword [edx + ebp*2], 0x36
xor eax, 0x37363435
xor eax, 0x353637
xor ch, byte [esi]
add byte [eax], al
add byte [eax], al
pop es
add byte [eax], al
add byte [edi], al
add byte [eax], al
add byte [ebx + eax*4], al
inc eax
add byte [edi], al
add byte [eax], al
add al, al
add byte [eax], 7
add byte [eax], al
add byte [eax - 0x7e], dl
inc eax
add byte [edi], al
add byte [eax], al
add byte [edx + eax*4], cl
inc eax
add byte [edi], al
add byte [eax], al
add ah, al
add dword [eax], 7
jl 0x401243
inc eax
add byte [edi], al
add byte [eax], al
add al, al
add byte [eax], 6
add byte [eax], al
add byte [eax + 0x700405b], cl
add byte [eax], al
add byte [eax + 0x56], ch
inc eax
add byte [edi], al
add byte [eax], al
add byte [esi + edx*2], al
inc eax
add byte [eax], dl
add byte [eax], al
adc dword [ecx - 0xb], 0x73a0ae9e
dec esp
xchg ebp, eax
dec eax
pop edi
push ebp
or dword [edx - 1], 0x78
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
add byte [eax], 0
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax + 0x16], bl
add byte [eax], al
add byte [esp + edx*4 + 0x4c0040], dh
add byte [eax], al
push esi
inc edx
xor eax, 0x2a263621
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi], bh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
or al, byte [eax]
or dword [eax + eax], eax
add byte [eax], al
add byte [eax], al
add byte [ebp + ecx*2 + 0x24940040], dl
inc eax
add byte [eax], al
lock xor byte [eax], al
add bh, bh
invalid
Function at 0x402120
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e0c8]
jne 0x40212a
repz ret
jmp fcn.00404fee

Function at 0x404c0f
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.0040316b
and dword [ebp - 4], 0
cmp dword [0x422ee4], 0
mov ebx, eax
jne 0x404cc0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404d71
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x404d71
push eax
call fcn.004030f9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x422ee4], eax
call esi
push eax
call fcn.004030f9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x422ee8], eax
call esi
push eax
call fcn.004030f9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x422eec], eax
call esi
push eax
call fcn.004030f9
pop ecx
mov dword [0x422ef4], eax
test eax, eax
je 0x404cc0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004030f9
pop ecx
mov dword [0x422ef0], eax
mov eax, dword [0x422ef0]
cmp eax, ebx
je 0x404d18
cmp dword [0x422ef4], ebx
je 0x404d18
push eax
call fcn.00403174
push dword [0x422ef4]
mov esi, eax
call fcn.00403174
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404d18
test edi, edi
je 0x404d18
call esi
test eax, eax
je 0x404d0f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404d0f
test byte [ebp - 0xc], 1
jne 0x404d18
or dword [ebp + 0x10], 0x200000
jmp 0x404d51
mov eax, dword [0x422ee8]
cmp eax, ebx
je 0x404d51
push eax
call fcn.00403174
pop ecx
test eax, eax
je 0x404d51
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x404d51
mov eax, dword [0x422eec]
cmp eax, ebx
je 0x404d51
push eax
call fcn.00403174
pop ecx
test eax, eax
je 0x404d51
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x422ee4]
call fcn.00403174
pop ecx
test eax, eax
je 0x404d71
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404d73
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ea0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + 0x14]
mov dword [esi], 0x4052b8
cmp dword [edi], ebx
je 0x401f45
push str._mozilla.org_observer_service_1
mov edx, 0x4057dc
mov dword [ebp - 4], ebx
lea ecx, [ebp - 4]
call fcn.00403851
mov eax, dword [ebp - 4]
test eax, eax
je 0x401f25
mov ecx, dword [eax]
push ebx
push str.profile_change_net_teardown
push ebx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_change_teardown
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_qm
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_telemetry
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [edi]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
xor edx, edx
mov ecx, edi
call fcn.00403900
mov eax, dword [ebp - 4]
test eax, eax
je 0x401f45
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x401f7c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.xul.dll_NS_ShutdownXPCOM]
pop ecx
mov ecx, eax
shr ecx, 0x1f
test cl, 1
je 0x401f7c
push eax
push str.XPCOM_shutdown_failed_with_code_0x_x
call fcn.00402e16
pop ecx
pop ecx
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push dword [esi + 8]
push str.Finished_running__s_tests._n
call fcn.0040357b
pop ecx
pop ecx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x401f98
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x401fa5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x401fb1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x10]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x401fc1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esp, ebp
pop ebp
ret
Function at 0x420d30
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10054
call fcn.00446330
mov eax, dword [0x457040]
xor eax, esp
mov dword [esp + 0x10050], eax
xor eax, eax
mov edx, ecx
push ecx
lea ecx, [esp + 4]
mov word [esp + 0x54], ax
mov word [esp + 4], ax
call fcn.00420ff0
add esp, 4
lea eax, [esp + 0x50]
push 0x10000
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x420da5
cmp eax, 0x10000
ja 0x420da5
lea eax, [esp + 0x50]
push eax
call fcn.0043addf
add esp, 4
mov ecx, dword [esp + 0x10050]
xor ecx, esp
call fcn.0042d41d
add esp, 0x10054
ret
mov ecx, dword [esp + 0x10050]
xor eax, eax
xor ecx, esp
call fcn.0042d41d
add esp, 0x10054
ret

Function at 0x420dc0
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x54
mov eax, dword [0x457040]
xor eax, esp
mov dword [esp + 0x50], eax
xor eax, eax
mov edx, str.NUITKA_PYTHONPATH
push ecx
lea ecx, [esp + 4]
mov word [esp + 4], ax
call fcn.00420ff0
add esp, 4
lea eax, [esp]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0042d41d
add esp, 0x54
ret
Function at 0x429980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
cmp byte [0x459e5e], 0
push ebp
push esi
mov ebp, edx
mov dword [esp + 8], ecx
jne 0x4299e1
push 0xa
push 3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x459d34], eax
mov esi, dword [eax]
lea edx, [eax + 4]
mov dword [0x459d34], edx
mov eax, dword [edx]
add edx, 4
push eax
mov dword [0x459d34], edx
call fcn.00428270
add esp, 4
cmp eax, esi
jne 0x429b21
mov byte [0x459e5e], 1
push ebx
mov ebx, dword [esp + 0x14]
mov ecx, 0x44d41c
push edi
mov eax, ebx
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x429a10
test dl, dl
je 0x429a0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x429a10
add eax, 2
add ecx, 2
test dl, dl
jne 0x4299f0
xor eax, eax
jmp 0x429a15
sbb eax, eax
or eax, 1
test eax, eax
je 0x429a67
cmp byte [0x459e5f], 1
je 0x429a67
mov esi, dword [sym.imp.python311.dll_PyDict_New]
call esi
mov dword [0x45a44c], eax
call esi
mov dword [0x45a6b8], eax
call esi
mov dword [0x45a1e8], eax
call esi
mov dword [0x45a198], eax
call esi
mov dword [0x45a6ec], eax
call esi
mov dword [0x45a228], eax
call esi
mov dword [0x45a6bc], eax
call esi
mov dword [0x45a6c8], eax
mov byte [0x459e5f], 1
mov esi, dword [0x459d34]
mov eax, ebx
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x429a91
test dl, dl
je 0x429a8d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x429a91
add eax, 2
add ecx, 2
test dl, dl
jne 0x429a71
xor edx, edx
jmp 0x429a96
sbb edx, edx
or edx, 1
mov ecx, esi
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x429aa0
sub ecx, edi
add esi, ecx
mov eax, dword [esi + 1]
add esi, 5
test edx, edx
je 0x429b05
add esi, eax
mov ecx, ebx
mov eax, esi
nop dword [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x429ae0
test dl, dl
je 0x429adc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x429ae0
add ecx, 2
add eax, 2
test dl, dl
jne 0x429ac0
xor edx, edx
jmp 0x429ae5
sbb edx, edx
or edx, 1
mov ecx, esi
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x429af0
sub ecx, edi
add esi, ecx
mov eax, dword [esi + 1]
add esi, 5
test edx, edx
jne 0x429ab5
movzx eax, word [esi]
mov edx, ebp
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esi + 2]
push eax
call fcn.00428c60
add esp, 8
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret
push str.Error__corrupted_constants_object
call fcn.00439bbe
add esp, 4
call fcn.004305b0
int3

Function at 0x42dcee
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42dd2d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42dd2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42dd2d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42dd2d
cmp dword [ecx + 0x74], 0xe
jbe 0x42dd2d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43b7d3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4495b4
push 0x4495ac
push str.FlsAlloc
push 0x1f
call fcn.0043b6b1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43b807
push dword [ebp + 8]
mov ecx, esi
call dword [0x4474f0]
call esi
jmp 0x43b80d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43b851
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4495c4
push 0x4495bc
push str.FlsGetValue
push 0x21
call fcn.0043b6b1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43b888
push dword [ebp + 8]
mov ecx, esi
call dword [0x4474f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43b890
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4495cc
push 0x4495c4
push str.FlsSetValue
push 0x22
call fcn.0043b6b1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43b8ca
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4474f0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43e1aa
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x457040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x43e1f5
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043e345
test al, al
jne 0x43e1ef
sub edx, 2
cmp edx, edi
jne 0x43e1d5
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43e217
lea eax, [edi + 2]
cmp edx, eax
je 0x43e217
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043e0f6
add esp, 0x10
jmp 0x43e311
push esi
lea ecx, [ebp - 0x255]
call fcn.0043e345
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43e25a
push dword [ebp - 0x25c]
jmp 0x43e207
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x43e297
cmp word [ebp - 0x226], 0
je 0x43e2b8
cmp word [ebp - 0x226], ax
jne 0x43e297
cmp word [ebp - 0x224], 0
je 0x43e2b8
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043e0f6
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43e304
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43e271
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43e2ec
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43e311
push 0x43df26
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00443280
add esp, 0x10
jmp 0x43e2e1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d41d
leave
ret

Function at 0x43ed0a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x43ed1b
pop esi
ret
push ebx
push edi
push esi
call fcn.0043ecd3
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043ccf9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43ed43
push ebx
push esi
push edi
call fcn.0042f0f0
add esp, 0xc
push 0
call fcn.0043b55e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x43f113
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043ed58
Function at 0x445f20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x445f4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x445f4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x402733
Capabilities:
Terminate process

Disassembly:
call section..text
push 0
push 0x405018
push 0x405014
call fcn.00402c58
push 0
push 0x405020
push 0x40501c
call fcn.00402c58
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4030f6
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x405744]
test eax, eax
je 0x40310f
call eax
test eax, eax
jne 0x40310f
push 0xfffffffffffffffe
jmp 0x403129
push 1
push 0x405010
push 0x405008
call fcn.00402c58
add esp, 0xc
test eax, eax
je 0x40312f
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x405004
push section..data
call fcn.00402c58
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x403155
mov esi, 0x404561
mov cl, 0x20
jmp 0x40315e
cmp al, 0x20
ja 0x403168
inc esi
mov al, byte [esi]
test al, al
jne 0x403159
cmp al, 0x20
jbe 0x40317f
mov al, byte [esi]
cmp al, 0x22
jne 0x403171
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x40316a
jmp 0x40317f
cmp al, cl
ja 0x403185
inc esi
mov al, byte [esi]
test al, al
jne 0x40317a
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x4031ae
movzx eax, word [ebp - 0x14]
jmp 0x4031b1
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00402733
pop ecx
pop esi
leave
ret

Function at 0x4031e8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40515c], eax
push 0
push dword [ebp + 8]
push 0
push 0
push 0
push 0x80000000
push 0xfffffc18
push 0xfffffc18
push 0xcf0000
push 0x4055a0
push 0x405608
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403232
xor eax, eax
jmp 0x403249
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]