joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c08
Capabilities:
Allocate or change rwx memory
Resume thread
Suspend thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2f4
push esi
push edi
push 0x2c8
lea eax, [ebp - 0x2f0]
push 0
push eax
call fcn.00401010
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov word [ebp - 4], 0xfeeb
test esi, esi
je 0x401d08
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push 0x1c
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x401d08
lea eax, [ebp - 0xc]
push eax
push 0x40
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp + 0x10]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov dword [ebp - 0x2f4], 0x10001
jmp 0x401ccc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2f4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
cmp dword [ebp - 0x23c], esi
jne 0x401ca2
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp + 0x10]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
xor eax, eax
jmp 0x401d0b
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x401ee4
Capabilities:
Enumerate files on windows
Set console window title

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
push esi
push edi
push dword [ebp + 8]
call fcn.00401fef
push dword [ebp + 8]
mov edi, eax
lea eax, [ebp - 0x244]
push eax
call fcn.00401f90
add esp, 0xc
lea eax, [ebp - 0x244]
push 0x4065f4
push eax
call fcn.00403680
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401f65
mov ecx, dword [ebp - 0x140]
not ecx
test cl, 0x10
je 0x401f53
push edi
lea eax, [ebp - 0x114]
push eax
call fcn.004036f0
test eax, eax
je 0x401f79
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401f35
push str.Expression_Solver
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call fcn.0040104b
pop edi
pop esi
leave
ret
mov eax, 0x1ef
jmp 0x401f75
Function at 0x4020a6
Capabilities:
Get common file path
Set console window title

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
xor esi, esi
push str.Loading..._n
mov ebx, esi
mov dword [ebp - 4], esi
call fcn.00402ffa
xor edi, edi
inc edi
pop ecx
cmp dword [ebp + 8], edi
jle 0x40211e
mov esi, dword [ebp + 0xc]
push 3
push 0x406648
push dword [esi + edi*4]
call fcn.00403803
mov ecx, dword [esi + edi*4]
test eax, eax
jne 0x4020ef
add ecx, 3
mov dword [ebp - 4], ecx
jmp 0x4020fd
push ecx
call fcn.0040203a
pop ecx
test al, al
je 0x4020fd
mov ebx, dword [esi + edi*4]
inc edi
cmp edi, dword [ebp + 8]
jl 0x4020d1
push 0
pop esi
test ebx, ebx
je 0x40211e
push ebx
lea eax, [ebp - 0x108]
push eax
call fcn.00403714
mov edi, 0x104
jmp 0x402143
lea eax, [ebp - 0x108]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
push 0x40664c
lea eax, [ebp - 0x108]
push eax
call fcn.004037b5
lea eax, [ebp - 0x108]
push eax
call fcn.00401fef
pop ecx
test eax, eax
jne 0x4021c0
mov edx, esi
mov ebx, pe_nt_image_headers32
sub byte [edx + section..data], bl
mov bl, byte [edx + section..data]
inc edx
movzx eax, bl
mov bh, byte [edx + section..data]
movsx ecx, bh
sub ecx, eax
jne 0x40215b
push edi
push section..data
lea eax, [ebp - 0x108]
sub bh, bl
push eax
mov byte [edx + section..data], bh
call fcn.004037b5
cmp byte [section..data], 0
mov ebx, pe_nt_image_headers32
je 0x4021ba
add byte [esi + section..data], bl
mov al, byte [esi + section..data]
sub al, bl
inc esi
mov bl, al
cmp byte [esi + section..data], 0
jne 0x4021a0
add byte [esi + section..data], bl
lea eax, [ebp - 0x108]
push eax
call fcn.00401ee4
pop ecx
pop edi
pop esi
pop ebx
cmp eax, 0x1ef
jne 0x402206
push str.Antinomy_of_Common_Flowers
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4021f9
push eax
lea eax, [ebp - 0x108]
push eax
call sym.th155n.exe_start_loadatbase
pop ecx
jmp 0x402205
lea eax, [ebp - 0x108]
push eax
call sym.th155n.exe_start_newprocess
pop ecx
leave
ret
Function at 0x402218
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
push 0
lea eax, [ebp - 0x10c]
mov dword [ebp - 8], 0xa000000
push eax
push 0x104
push dword [ebp + 8]
mov dword [ebp - 4], 0xf000000
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x402276
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call esi
mov edi, eax
call esi
cmp eax, 0x7b
jne 0x40226e
push dword [ebp + 8]
push str.The_filename__directory_name__or_volume_label_syntax_is_incorrect___s_.
call fcn.00402ffa
pop ecx
pop ecx
mov eax, edi
pop edi
jmp 0x4022fe
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push str._10i__10i
push dword [ebp + 0xc]
call fcn.004030ae
mov ecx, dword [ebp - 8]
add esp, 0x10
cmp eax, 2
jge 0x40229d
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4022a0
mov eax, dword [ebp - 4]
test ecx, ecx
je 0x4022fc
test eax, eax
je 0x4022fc
push eax
push ecx
lea eax, [ebp - 0x10c]
push eax
call fcn.00402b98
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4022e9
push esi
lea eax, [ebp - 0x10c]
push sym.th155n.exe_start_modloadercb_loadatbase
push eax
call sym.th155n.exe_start_modloader
add esp, 0xc
test eax, eax
je 0x4022e0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call fcn.00402a56
pop ecx
jmp 0x4022fc
push dword [ebp - 4]
push dword [ebp - 8]
push str.Unable_to_launch_with_deaslrizer__could_the_base_addresses_0x_X_0x_X_be_occupied__n
call fcn.00402ffa
add esp, 0xc
xor eax, eax
pop esi
leave
ret
Function at 0x402311
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
push esi
xor esi, esi
mov ebx, pe_nt_image_headers32
push edi
mov edx, esi
sub byte [edx + 0x407018], bl
mov bl, byte [edx + 0x407018]
inc edx
movzx eax, bl
mov bh, byte [edx + 0x407018]
movsx ecx, bh
sub ecx, eax
jne 0x402328
push dword [ebp + 8]
lea eax, [ebp - 0x108]
sub bh, bl
push eax
mov byte [edx + 0x407018], bh
call fcn.00401f90
pop ecx
pop ecx
push 0x407018
lea eax, [ebp - 0x108]
push eax
call fcn.00403680
lea eax, [ebp - 0x108]
push eax
push str.start_modloader::_s_n
call fcn.00402ffa
pop ecx
pop ecx
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov ebx, pe_nt_image_headers32
cmp edi, 0xffffffff
jne 0x402436
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4023f8
lea eax, [ebp - 0x108]
push eax
push 0x407018
push str.Failed_to_find_file_that_matches_pattern___s__in___s__n
call fcn.00402ffa
add esp, 0xc
cmp byte [0x407018], 0
je 0x4023ed
add byte [esi + 0x407018], bl
mov al, byte [esi + 0x407018]
sub al, bl
inc esi
mov bl, al
cmp byte [esi + 0x407018], 0
jne 0x4023d3
add byte [esi + 0x407018], bl
jmp 0x4024de
push eax
push str.FindFirstFile_failed_with_error_code_0x_x_n
call fcn.00402ffa
cmp byte [0x407018], 0
pop ecx
pop ecx
je 0x402428
add byte [esi + 0x407018], bl
mov al, byte [esi + 0x407018]
sub al, bl
inc esi
mov bl, al
cmp byte [esi + 0x407018], 0
jne 0x40240e
add byte [esi + 0x407018], bl
xor eax, eax
inc eax
jmp 0x4024e0
cmp byte [0x407018], 0
je 0x402459
add byte [esi + 0x407018], bl
mov al, byte [esi + 0x407018]
sub al, bl
inc esi
mov bl, al
cmp byte [esi + 0x407018], 0
jne 0x40243f
add byte [esi + 0x407018], bl
lea eax, [ebp - 0x108]
push eax
call fcn.00402069
pop ecx
mov eax, dword [ebp - 0x248]
not eax
test al, 0x10
je 0x4024ad
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x21c]
push eax
push str.Inserting__s_from__s..._n
call fcn.00402ffa
push dword [ebp + 0x10]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [ebp + 0xc]
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4024e5
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40246c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x4024d7
push eax
push str.FindNextFile_failed_with_error_code_0x_x_n
call fcn.00402ffa
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x21c]
push eax
push str.Failed_to_insert__s_n
call fcn.00402ffa
pop ecx
pop ecx
mov eax, esi
jmp 0x4024e0
Function at 0x402590
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
lea eax, [ebp - 0x58]
push esi
push edi
push 0x44
xor esi, esi
push esi
push eax
call fcn.00401010
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x15c]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x4025df
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40268a
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00401f90
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x260]
push eax
push esi
push 0x800000c
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40266d
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.00401d1f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x260]
push sym.th155n.exe_start_modloadercb_newprocess
push eax
call sym.th155n.exe_start_modloader
add esp, 0x18
test eax, eax
je 0x402652
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
jmp 0x402688
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__i_occured_while_trying_to_launch__s_n
call fcn.00402ffa
add esp, 0xc
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4026e5
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
push esi
push dword [ebp + 0xc]
xor esi, esi
call fcn.0040378e
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], esi
jne 0x40270a
xor eax, eax
jmp 0x4027a0
push ebx
lea eax, [ebp - 4]
push eax
push esi
push esi
push dword [ebp + 8]
call sub.KERNEL32.dll_K32EnumProcessModules
push dword [ebp - 4]
call fcn.00403a78
mov ebx, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x402797
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebp - 0xc], eax
push edi
mov edi, esi
test eax, eax
je 0x402796
push 0x104
lea eax, [ebp - 0x110]
push eax
push dword [ebx + edi*4]
push dword [ebp + 8]
call sub.KERNEL32.dll_K32GetModuleFileNameExA
test eax, eax
je 0x40278b
lea eax, [ebp - 0x110]
push eax
call fcn.0040378e
mov ecx, eax
sub eax, dword [ebp - 8]
js 0x40278b
push ecx
lea ecx, [ebp - 0x110]
add eax, ecx
push eax
push dword [ebp + 0xc]
call fcn.0040389f
test eax, eax
je 0x402793
inc edi
cmp edi, dword [ebp - 0xc]
jb 0x402747
jmp 0x402796
mov esi, dword [ebx + edi*4]
pop edi
push ebx
call fcn.00403a4f
mov eax, esi
pop ebx
pop esi
leave
ret
Function at 0x4027b3
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4027c8
or eax, 0xffffffff
jmp 0x402811
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x40]
push 0
push 0x40
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, 0x5a4d
cmp word [ebp - 0x40], ax
je 0x4027ee
push 2
pop eax
jmp 0x402810
mov eax, dword [ebp - 4]
push 0
push 0xf8
push esi
add eax, edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor eax, eax
cmp dword [esi], 0x4550
setne al
pop edi
pop esi
leave
ret

Function at 0x402b98
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push edi
push dword [ebp + 8]
push 0x407268
call fcn.00403714
push 0x104
push 0x407370
push 0xffffffffffffffff
push dword [ebp + 8]
push 1
push 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ebx, ebx
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 7
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
jne 0x402bf4
xor eax, eax
jmp 0x402c7e
push esi
push ebx
push ebx
push ebx
push 0x1000002
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
jne 0x402c16
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402c7d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp + 0xc]
jmp 0x402c27
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, dword [ebp - 0xc]
test ebx, ebx
jne 0x402c4f
cmp eax, 0x1e7
jne 0x402c4f
cmp edi, dword [ebp + 0x10]
jb 0x402c25
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov edi, dword [ebp - 4]
push edi
call esi
push 0x406684
push 0x1c
push 0xffffffffffffffff
push ebx
push 0x407244
call fcn.0040501e
add esp, 0x14
mov dword [0x407240], ebx
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x403c74
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 1
je 0x403ccc
mov eax, dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp esi, 2
jne 0x403c95
push 0xfffffffffffffff5
call eax
jmp 0x403ca0
cmp esi, 3
jne 0x403c9e
push 0xfffffffffffffff4
jmp 0x403c91
mov eax, dword [esi]
push dword [ebp + 0x10]
mov dword [ebp + 8], eax
push dword [ebp + 0xc]
call fcn.00403d97
lea ebx, [eax + 1]
cmp ebx, 0x14
jle 0x403cd5
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x403cd8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
lea edi, [ebp - 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push edi
call fcn.004040be
mov ebx, eax
test ebx, ebx
js 0x403d80
cmp esi, 2
je 0x403d0c
cmp esi, 3
je 0x403d0c
push 0
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x403d69
xor esi, esi
test ebx, ebx
je 0x403d69
lea ecx, [esi + edi]
mov dl, byte [ecx]
lea eax, [edx - 0x10]
cmp al, 0xf
ja 0x403d52
movsx eax, dl
inc esi
mov ecx, eax
and dl, 4
shr ecx, 2
or dl, 8
shr eax, 1
and ecx, 2
and eax, 1
or ecx, eax
movzx eax, dl
or cx, ax
movzx eax, cx
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
jmp 0x403d64
push 0
lea eax, [ebp - 4]
push eax
push 1
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc esi
cmp esi, ebx
jb 0x403d12
lea eax, [ebp - 0x18]
cmp edi, eax
je 0x403d80
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
jmp 0x403cce

Function at 0x404d81
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push dword [ebp + 0x10]
push 0x40
lea edi, [esi + 0x24]
push ebx
push edi
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x404da8
push 3
pop eax
jmp 0x404e40
mov eax, 0x5a4d
cmp word [edi], ax
je 0x404db6
push 4
jmp 0x404da2
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x404dc1
push 5
jmp 0x404da2
push dword [ebp + 0x10]
lea edi, [esi + 0x64]
mov dword [esi + 0x10], eax
push 0xf8
push eax
push edi
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x404ddf
push 6
jmp 0x404da2
cmp dword [edi], 0x4550
je 0x404deb
push 7
jmp 0x404da2
mov eax, 0x10b
cmp word [esi + 0x7c], ax
je 0x404dfa
push 9
jmp 0x404da2
cmp word [esi + 0x6a], bx
jne 0x404e04
push 0xa
jmp 0x404da2
mov eax, dword [esi + 0x60]
movzx ecx, word [esi + 0x78]
add eax, 0x18
add eax, ecx
cmp dword [esi + 0xd8], 1
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x8c]
mov dword [esi + 0x14], eax
jae 0x404e2c
push 0xb
jmp 0x404da2
mov eax, dword [esi + 0xdc]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0xe4]
mov dword [esi + 0x1c], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40e037
Capabilities:
Packed with generic packer

Disassembly:
pushal
call 0x40e03d
pop eax
sub eax, 0x3d
push eax
lea edi, [eax - 0xd000]
push edi
add word [edi + 0xc59c], 0
lea esi, [eax + 0x1ec]
or ebp, 0xffffffff
xor ebx, ebx
jmp 0x40e066
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40e071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40e060
mov eax, 1
add ebx, ebx
jne 0x40e083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x40e078
jne 0x40e094
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e078
xor ecx, ecx
sub eax, 3
jb 0x40e102
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40e11e
mov ebp, eax
add ebx, ebx
jne 0x40e0b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40e0c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40e0e4
inc ecx
add ebx, ebx
jne 0x40e0d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x40e0c5
jne 0x40e0e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e0c5
add ecx, 2
cmp eax, 0xfffff300
adc ecx, 1
lea edx, [edi + eax]
cmp eax, 0xfffffffc
jle 0x40e108
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40e0f4
jmp 0x40e066
mov eax, ebp
jmp 0x40e0a8
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40e108
add edi, ecx
jmp 0x40e066
pop esi
pop ebp
sub edi, dword [edi - 4]
push edi
lea edi, [esi]
mov ecx, 0xf0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40e12f
cmp byte [edi], 1
jne 0x40e12f
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 eax, ebx
loop 0x40e134
pop edi
mov eax, dword [edi]
or eax, eax
je 0x40e199
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc000]
add ebx, esi
push eax
add edi, 8
call dword [ebp]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40e15c
push edx
mov ecx, edi
jns 0x40e189
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [ebp + 4]
pop edx
mov dword [ebx], eax
add ebx, 4
jmp 0x40e176
lea ebx, [esi - 4]
add edi, 4
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x40e1ca
cmp al, 0xef
ja 0x40e1bd
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x40e19f
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x40e1ac
popal
jmp 0x405bdb
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40d440
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40d46e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40d48c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040d3a6
jmp 0x40d48c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40d48c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0040d3a6
test edi, edi
mov eax, edi
jne 0x40d476
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8