joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e0c0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40df38
mov eax, dword [0x536498]
cmp byte [eax], 0
je 0x40e13c
mov eax, dword [0x536108]
call fcn.00403804
call fcn.004030e8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a87c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40e184
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e172
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x536088]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5397f8]
call fcn.00406844
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40ea3c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40eb12
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405340
lea eax, [ebp - 4]
call fcn.00405790
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405738
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40eafc
mov eax, ebx
call fcn.00402f8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40eaf5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405738
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40eadf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40eb24
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40eadf
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eafc
mov eax, dword [ebp - 0x10]
call fcn.00402fa8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb19
lea eax, [ebp - 4]
call fcn.004052a8
ret

Function at 0x421238
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00420f74
dec esi
jne 0x42125a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x4223e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x53b9f0
cmp dword [edi], 0
jne 0x42245c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x53b9ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4aeaf8
mov ecx, 2
call fcn.0040317c
mov edx, 0x4223b8
lea eax, [esi + 5]
call fcn.004223d8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004223d8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x422431
mov dword [0x53b9ec], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x424cf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405738
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x424d48
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5366a0]
mov dl, 1
mov eax, dword [0x4246a8]
call fcn.0040e28c
call fcn.00404c3c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004247b0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x426088
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42608e
ret
Function at 0x44c63c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x53bc94], 0
je 0x44c785
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5363d4]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x44c785
mov eax, dword [0x53bc98]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x53bc94]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x44c754
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x53bc94]
call fcn.0041a130
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x44c74c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x44c74c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x44c74c
mov eax, dword [ebp - 0x14]
call fcn.00456e64
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44c74c
push ebp
call fcn.0044c5f8
pop ecx
test al, al
jne 0x44c74c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.004045c4
test al, al
je 0x44c74c
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.004045c4
cmp byte [ebp - 1], 0
je 0x44c74c
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x44c74c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x53bc98]
call fcn.0044bd68
inc edi
dec ebx
jne 0x44c6a1
mov eax, dword [0x53bc98]
cmp dword [eax + 8], 0
jle 0x44c76c
mov eax, dword [0x53bc98]
call fcn.0044be20
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x44c785
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0044c45c
pop ecx
test al, al
jne 0x44c785
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c21c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x536690]
cmp byte [eax + 0xc], 0
je 0x45c389
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45c382
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x53bca4], 0
jne 0x45c270
push 0x45c390
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x45c398
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x53bca4], eax
cmp dword [0x4af80c], 0
jne 0x45c36b
push 0x45c3a8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4af80c], eax
cmp dword [0x4af80c], 0
je 0x45c36b
push 0x45c3b4
mov eax, dword [0x4af80c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x53bca8], eax
push 0x45c3c4
mov eax, dword [0x4af80c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x53bcac], eax
push 0x45c3d8
mov eax, dword [0x4af80c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x53bcb0], eax
push 0x45c3f0
mov eax, dword [0x4af80c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x53bcb4], eax
push 0x45c408
mov eax, dword [0x4af80c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x53bcb8], eax
push 0x45c41c
mov eax, dword [0x4af80c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x53bcbc], eax
push 0x45c434
mov eax, dword [0x4af80c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x53bcc0], eax
push 0x45c44c
mov eax, dword [0x4af80c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x53bcc4], eax
push 0x45c468
mov eax, dword [0x4af80c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x53bcc8], eax
push 0x45c474
mov eax, dword [0x4af80c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x53bccc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c389
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x46ae00
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46ae17
add esp, 0xfffffff0
call fcn.004046ec
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042130c
mov eax, dword [0x5362dc]
cmp word [eax + 2], 0
jne 0x46ae3f
mov eax, dword [0x5362dc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046ca18
mov eax, dword [0x536418]
cmp word [eax + 2], 0
jne 0x46ae59
mov eax, dword [0x536418]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046cc24
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417a60]
call fcn.00404398
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417a60]
call fcn.00404398
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x417a60]
call fcn.00404398
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x425ec4]
call fcn.0042dc50
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x46b010
mov eax, dword [0x536154]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042e024
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46d2f8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x536154]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040f0e4
test eax, eax
je 0x46af60
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a8d0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040f118
test eax, eax
je 0x46af74
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405518
mov byte [ebx + 0xd4], 0
push ebx
push 0x46c528
call fcn.0042249c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x535f04]
cmp byte [eax], 0
jne 0x46afc5
mov eax, ebx
call fcn.0046b154
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0046d4d0
mov eax, ebx
call fcn.0046e034
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46b005
call fcn.00404744
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a4fc4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405728
xor eax, eax
push ebp
push 0x4a50ff
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4a50cf
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00405738
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
call fcn.0040a444
test al, al
jne 0x4a503f
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00403754
lea eax, [ebp - 0x1d0]
call fcn.004034f0
call fcn.004030e8
push dword [0x53cd3c]
push 0x4a5118
push dword [0x53cd40]
push 0x4a5118
push dword [0x53cd44]
lea eax, [ebp - 0x1d8]
mov edx, 5
call fcn.0040563c
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.004aa260
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1d0]
call fcn.00405a58
call fcn.00403e10
call fcn.004030e8
lea eax, [ebp - 0x1d0]
call fcn.0040381c
call fcn.004030e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a50d9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5106
lea eax, [ebp - 0x1d8]
mov edx, 2
call fcn.004052cc
lea eax, [ebp - 4]
call fcn.004052a8
ret
Function at 0x4a62bc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405728
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4a6424
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.004a5464
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.004a5484
mov ebx, eax
jmp 0x4a63f6
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00405518
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.0040a660
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00409748
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00409748
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.004056d0
je 0x4a63d6
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00405518
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00409748
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00409748
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004056d0
jne 0x4a63eb
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, edi
mov eax, esi
call fcn.004a54a4
mov ebx, eax
test ebx, ebx
jne 0x4a6337
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a642b
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.004052cc
lea eax, [ebp - 4]
call fcn.004052a8
ret
Function at 0x4a67d3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4a682d
mov eax, ebx
add eax, dword [eax + 0x3c]
mov edi, dword [eax + 0x78]
add edi, ebx
xor esi, esi
jmp 0x4a6828
mov eax, dword [edi + 0x20]
lea edx, [ebx + eax]
mov eax, dword [edx + esi*4]
add eax, ebx
push dword [ebp + 0xc]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x4a6827
mov edx, dword [edi + 0x24]
lea ecx, [ebx + edx]
mov ax, word [ecx + esi*2]
movzx edx, ax
mov ecx, dword [edi + 0x1c]
lea eax, [ebx + ecx]
mov eax, dword [eax + edx*4]
add eax, ebx
mov dword [ebp - 4], eax
inc esi
cmp esi, dword [edi + 0x18]
jb 0x4a67f4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4a7554
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405728
xor eax, eax
push ebp
push 0x4a762e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x4a7644
mov edx, dword [ebp - 4]
call fcn.004055c0
mov eax, dword [ebp - 8]
call fcn.00405738
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x4a759e.0
jmp dword [eax*4 + 0x4a75a5]
mov eax, ebx
mov edx, 0x4a7650
call fcn.004052fc
jmp 0x4a7613
mov eax, ebx
mov edx, 0x4a7664
call fcn.004052fc
jmp 0x4a7613
mov eax, ebx
mov edx, 0x4a7674
call fcn.004052fc
jmp 0x4a7613
mov eax, ebx
mov edx, 0x4a7688
call fcn.004052fc
jmp 0x4a7613
mov eax, ebx
mov edx, 0x4a7698
call fcn.004052fc
jmp 0x4a7613
mov eax, ebx
mov edx, 0x4a76ac
call fcn.004052fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7635
lea eax, [ebp - 8]
mov edx, 2
call fcn.004052cc
ret
Function at 0x4ab238
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ab309
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 4]
lea eax, [ebp - 0x104]
call fcn.0040aabc
lea ecx, [ebp - 0x108]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004367cc
mov eax, dword [ebp - 0x108]
mov edx, 0x4ab320
call fcn.004056d0
je 0x4ab2d9
lea ecx, [ebp - 0x10c]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004367cc
mov eax, dword [ebp - 0x10c]
mov edx, 0x4ab32c
call fcn.004056d0
je 0x4ab2d9
lea eax, [ebp - 4]
mov edx, 0x4ab32c
call fcn.00405574
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004052fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab310
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.004052cc
lea eax, [ebp - 4]
call fcn.004052a8
ret
Function at 0x401d80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401dcb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401dc4
test esi, esi
je 0x401dc4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401da0
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401fb0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4020d4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x40203e
cmp eax, 4
jne 0x402060
test esi, esi
je 0x402052
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x402044
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x40209f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x402091
cmp ecx, 0x40
je 0x402052
cmp ecx, 4
je 0x402052
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401fb0
lea esi, [esi]
Function at 0x41a140
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4981db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0048c101
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41a1c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004899c0
mov eax, dword [eax]
push 0x4ba230
push eax
call fcn.0047b134
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048c38c
test bl, bl
je 0x41a1c2
push 0x4ba230
lea ecx, [esp + 0xc]
call fcn.0048c71c
push 0x4bddac
lea ecx, [esp + 0xc]
call fcn.0048c71c
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41a1fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048c38c
jmp 0x41a2c9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x41a282
lea edx, [esp + 0x7c]
push 0x4bdda8
push edx
call fcn.0047b134
add esp, 8
test eax, eax
je 0x41a282
lea eax, [esp + 0x7c]
push 0x4bdda4
push eax
call fcn.0047b134
add esp, 8
test eax, eax
je 0x41a282
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41a212
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0048c38c
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x41aae0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41ab42
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc