joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b0b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 8], 0
je 0x403b36
mov eax, dword [0x43b0c0]
test eax, eax
je 0x403b2a
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x43b0c0], 0
jmp 0x403ba5
cmp dword [0x43b0c0], 0
je 0x403b4e
mov dword [esp], 0
call fcn.00408c52
push edx
jmp 0x403ba5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x473c80]
jbe 0x403ba5
mov eax, dword [0x473cc8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x403a50
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
sub esp, 0x14
mov dword [0x43b0c0], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
leave
ret
Function at 0x407838
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x38]
lea edi, [ebp - 0x2c]
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov byte [ebp - 0x2c], 1
mov byte [ebp - 0x2b], 0
mov word [ebp - 0x2a], 4
mov dword [ebp - 0x28], 0x40b9a4
mov dword [ebp - 0x24], 0x40b9a4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x40b994
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
push edx
push edx
je 0x40789c
xor eax, eax
jmp 0x4078c9
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x4078c9
mov dword [esp + 8], edi
mov dword [esp + 4], 0x80000007
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
sub esp, 0xc
test eax, eax
jne 0x407898
call ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x407901
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x472500], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], 0x472500
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
xor edx, edx
sub esp, 0x28
test eax, eax
je 0x40797d
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push eax
mov eax, edx
leave
ret 4

Function at 0x407bf5
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
push edx
mov ebx, eax
je 0x407c23
and eax, 0xfffffffe
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.00407bf5
cmp eax, 0xffffffff
push ecx
mov esi, eax
jne 0x407c4e
xor edi, edi
jmp 0x407c88
test byte [ebp + 0xc], 1
mov dword [esp], ebx
je 0x407c80
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov edi, 1
push edx
jne 0x407c88
mov edi, dword [ebp + 0xc]
and edi, 4
jne 0x407c4a
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
jmp 0x407c88
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x407c5d
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x407c94
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
push edx
mov edx, 0
cmove eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x407cf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov esi, 0x65
sub esp, 0x20
mov ebx, dword [ebp + 8]
dec esi
je 0x407d51
mov edx, dword [0x40b744]
mov eax, dword [0x40b740]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
div ecx
lea eax, [ebp - 0x10]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
add word [ebp - 0xc], dx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
sub esp, 0x10
test eax, eax
je 0x407d00
mov eax, ebx
jmp 0x407d58
mov word [ebx], 0
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8

Function at 0x407d61
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x407da0
xor eax, eax
cmp ebx, dword [ebp - 0xc]
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x407da7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x407de6
xor eax, eax
cmp ebx, dword [ebp - 0xc]
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc
Function at 0x407ed9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea edx, [ebp - 0x14]
sub esp, 0x34
cmp dword [ebp + 0x18], 1
mov ebx, dword [ebp + 0x14]
mov word [ebx], 0
mov dword [esp + 0x10], edx
sbb eax, eax
mov dword [esp + 8], 0
xor al, al
add eax, 0x20119
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x407f81
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x4000
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x407f66
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
jbe 0x407f6b
mov word [ebx], 0
mov eax, dword [ebp - 0x14]
mov word [ebx + 0x3ffe], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov ebx, dword [ebp - 4]
leave
ret 0x14
Function at 0x4087f4
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esp], 0x46a500
mov dword [esp + 4], eax
call fcn.00408063
push ebx
push ebx
mov dword [esp], 0x46a500
call fcn.00407ad3
test eax, eax
push esi
mov ebx, eax
jne 0x40882b
xor eax, eax
jmp 0x4088ad
mov dword [esp], eax
call fcn.004080ea
test byte [0x473c84], 0x80
push ecx
jne 0x40884d
sub ebx, 0x46a500
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar ebx, 1
jmp 0x408874
mov ax, word [ebx]
cmp ax, 0x5c
je 0x408824
test ax, ax
jne 0x40883d
jmp 0x408824
call fcn.004087bc
test eax, eax
push edx
jne 0x40888b
mov dword [esp], 0x46a500
call fcn.00407a5a
push eax
mov dword [esp], 0x46a500
call esi
push ecx
cmp eax, ebx
mov dword [esp], 0x46a500
jg 0x40885d
jmp 0x408892
test byte [eax], 0x10
jne 0x408867
jmp 0x408824
call fcn.004080a1
push eax
mov dword [esp], 0x46a500
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
push edx
setne al
movzx eax, al
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4
Function at 0x408b45
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x104
push edx
push edx
ja 0x408b88
test eax, eax
mov edx, 1
je 0x408b8f
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x408b8f
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
add edx, 0x40b748
add eax, ebx
mov dword [esp + 4], str._s_S.dll
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 0xc], ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
sub esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x408d18
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x472584], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x408d35
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x408d63
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x408d3e
mov dword [ecx*4 + 0x472580], eax
inc ecx
cmp ecx, 0x100
jne 0x408d37
jmp 0x408d29
cmp edx, ebx
je 0x408d7c
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x472580]
jmp 0x408d63
pop ebx
not eax
pop esi
pop ebp
ret 0xc
Function at 0xcdaa10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x64e000]
push edi
or ebp, 0xffffffff
jmp 0xcdaa32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xcdaa39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcdaa28
mov eax, 1
add ebx, ebx
jne 0xcdaa4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xcdaa5c
jne 0xcdaa7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcdaa7b
dec eax
add ebx, ebx
jne 0xcdaa68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xcdaa40
add ebx, ebx
jne 0xcdaa77
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xcdaacd
xor ecx, ecx
sub eax, 3
jb 0xcdaa93
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xcdab02
sar eax, 1
mov ebp, eax
jmp 0xcdaa9e
add ebx, ebx
jne 0xcdaa9e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcdaa6c
inc ecx
add ebx, ebx
jne 0xcdaaac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcdaa6c
add ebx, ebx
jne 0xcdaab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xcdaaae
jne 0xcdaaca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xcdaaae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xcdaaec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xcdaade
jmp 0xcdaa2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xcdaaec
add edi, ecx
jmp 0xcdaa2e
pop esi
mov edi, esi
mov ecx, 0x1c3f3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xcdab0a
cmp byte [edi], 0x3f
jne 0xcdab0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xcdab0f
lea edi, [esi + 0x8d6000]
mov eax, dword [edi]
or eax, eax
je 0xcdab7e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8e0688]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8e0778]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xcdab3c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8e077c]
or eax, eax
je 0xcdab78
mov dword [ebx], eax
add ebx, 4
jmp 0xcdab59
call dword [esi + 0x8e078c]
mov ebp, dword [esi + 0x8e0780]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xcdabb2
sub esp, 0xffffff80
jmp 0x7705d8
Function at 0x40ef81
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x7725a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040bc86
mov dword [ebp - 0x14], eax
cmp dword [0x97ea98], esi
jne 0x40f074
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40f001
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f154
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40f154
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f154
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x97ea98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x97ea9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x97eaa0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x97eaa8], eax
test eax, eax
je 0x40f071
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x97eaa4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40f099
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f08c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40f0ae
push 4
pop eax
jmp 0x40f156
cmp dword [ebp - 0x14], esi
je 0x40f0ae
push dword [0x97ea98]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40f093
mov eax, dword [0x97eaa4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40f10c
cmp dword [0x97eaa8], edi
je 0x40f10c
push eax
call ebx
push dword [0x97eaa8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40f10c
test eax, eax
je 0x40f10c
call ecx
test eax, eax
je 0x40f101
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40f101
test byte [ebp - 8], 1
jne 0x40f10c
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40f13c
mov eax, dword [0x97ea9c]
cmp eax, edi
je 0x40f139
push eax
call ebx
test eax, eax
je 0x40f139
call eax
mov esi, eax
test esi, esi
je 0x40f139
mov eax, dword [0x97eaa0]
cmp eax, edi
je 0x40f139
push eax
call ebx
test eax, eax
je 0x40f139
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x97ea98]
call ebx
test eax, eax
je 0x40f154
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40f156
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c637
mov esp, ebp
pop ebp
ret
Function at 0x4011d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
nop
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0x403920
mov ecx, dword fs:[0]
mov dword [ebp - 0xc], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x2e], 0
mov dword [ebp - 0x34], 0
nop
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x24]
jae 0x40131c
nop
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x38]
add ecx, eax
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0x50]
call fcn.00401360
sub esp, 4
jmp 0x401283
lea eax, [ebp - 0x50]
mov dword [esp], eax
mov dword [esp + 4], 0x235
call section..text
cmp eax, dword [ebp + 0xc]
jne 0x4012da
nop
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
add eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x34]
shl ecx, 1
add eax, ecx
mov ax, word [eax]
mov word [ebp - 0x2e], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 0x2e]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x54], 2
jmp 0x4012eb
nop
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x54], 0
jmp 0x4012f0
lea ecx, [ebp - 0x50]
call fcn.00401430
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x40130d
jmp 0x401308
jmp 0x40131c
nop
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
jmp 0x401251
nop
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
add eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add esp, 0x5c
pop ebp
ret

Function at 0x401770
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [section..OO], eax
pop esi
pop edi
pop ebp
ret

Function at 0x4017a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 8]
mov eax, dword [0x41a600]
xor eax, ebp
mov dword [ebp - 8], eax
mov esi, dword [ebp + 8]
push esi
mov edx, 0x41a01c
mov ecx, 0x27
xor ecx, 0x1af
add edx, ecx
call edx
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4032d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
nop
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x403ba0
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [eax + 8], edx
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x24]
mov dword [eax], ecx
call fcn.00403400
jmp 0x40332c
nop
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], 0x4034c0
add eax, 4
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x24]
call fcn.004035a0
mov edx, dword [ebp - 0x34]
mov ecx, eax
mov dword [ebp - 0x10], 0
mov eax, esp
mov dword [eax + 0x14], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov dword [eax + 8], 0x4034c0
mov dword [eax + 4], 0
mov dword [eax], 0
call fcn.004067f4
mov dword [ebp - 0x30], eax
jmp 0x403381
nop
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
cmp dword [eax], 0
je 0x4033a0
lea ecx, [ebp - 0x24]
call fcn.004035c0
jmp 0x4033bd
nop
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], 0
mov eax, esp
mov dword [eax], 6
call fcn.00403e7f
jmp 0x4033bd
lea ecx, [ebp - 0x24]
call fcn.00403610
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x404e74
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 0x404ea9
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x404ea6
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x404eb2
add edx, 0x28
cmp edx, esi
jne 0x404e94
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x404eaf

Function at 0x404fd4
Capabilities:
Parse pe header

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

Function at 0x408e90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408ebd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408ebd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40920d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412e14
push 0x412e0c
push str.FlsAlloc
push 0x1f
call fcn.00409599
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409241
push dword [ebp + 8]
mov ecx, esi
call dword [0x417df0]
call esi
jmp 0x409247
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40928b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412e24
push 0x412e1c
push str.FlsGetValue
push 0x21
call fcn.00409599
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4092c2
push dword [ebp + 8]
mov ecx, esi
call dword [0x417df0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4092ca
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412e2c
push 0x412e24
push str.FlsSetValue
push 0x22
call fcn.00409599
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409304
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x417df0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40c99d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40ca3a
push ebx
push esi
call fcn.0040ca3d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040c8a1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c9e7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ca39
push edi
push eax
call fcn.0040b3b5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40ca07
call fcn.0040a83b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ca38
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040c8a1
add esp, 0x20
test eax, eax
jne 0x40ca26
push edi
call fcn.0040a83b
jmp 0x40ca2e
push ebx
call fcn.0040a83b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret