joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401080
Capabilities:
Acquire debug privileges
Hide graphical window

Disassembly:
sub esp, 0x148
lea eax, [esp + 0x44]
push ebp
push esi
mov esi, dword [esp + 0x154]
push edi
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4010c6
push 0x10
push str.D2MR_Injector_Error_
push str.Unable_to_get_DLL_Path_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x148
ret 0x10
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4010ef
mov dl, byte [esp + ecx + 0x50]
lea eax, [esp + ecx + 0x50]
cmp dl, 0x5c
jne 0x4010ea
mov byte [eax], 0
xor ecx, ecx
jmp 0x4010eb
dec ecx
test ecx, ecx
jne 0x4010d6
lea ecx, [esp + 0x50]
push ecx
push str._sd2mr.dll
push 0x40a048
call fcn.00401c80
add esp, 0xc
mov dword [esp + 0x1c], esi
mov dword [esp + 0x30], str.D2MR
mov dword [esp + 0x10], 0x401a60
push 0x67
push esi
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 1
mov dword [esp + 0x30], 0x66
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.GDI32.dll_GetStockObject]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x401182
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x148
ret 0x10
push 0
push esi
push 0
push 0
push 0x190
push 0x1f4
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Firks_D2MapReveal_for_D2_1.13c
push str.D2MR
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x409b54], eax
mov ecx, dword [esp + 0x164]
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x409b54]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push str.SeDebugPrivilege
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00401000
mov eax, dword [0x409b54]
add esp, 0xc
push 0
push 0x1f4
push 0x3a98
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea ecx, [esp + 0x3c]
push 0
push ecx
call esi
test eax, eax
je 0x401245
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
lea edx, [esp + 0x34]
push edx
call edi
lea eax, [esp + 0x34]
push eax
call ebp
push 0
push 0
lea ecx, [esp + 0x3c]
push 0
push ecx
call esi
test eax, eax
jne 0x401226
mov edx, dword [0x409bc0]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
mov eax, dword [esp + 0x34]
pop ebp
add esp, 0x148
ret 0x10
Function at 0x401730
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x40]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x10], 0
jne 0x40174f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x401798
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.cant_open_process__error__d_
push eax
call fcn.00401c80
add esp, 0xc
lea ecx, [esp + 0x14]
push esi
push str.loader_error
push ecx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40184b
push str.LoadLibraryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esp + 0x50], eax
je 0x40184b
mov ebp, dword [esp + 0x4c]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
push 4
push 0x3000
not ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x40184b
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [esp + 0x50]
push 0
push 0
push ebx
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x401832
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 0xc000
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x401860
Capabilities:
Enumerate process modules

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x228
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push ecx
xor ebp, ebp
xor esi, esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4018a4
push 0x10
push str.D2MR_Injector_Error_
push str.Unable_to_get_ProcessID
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x228
ret
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4018d2
push 0x10
push str.D2MR_Injector_Error_
push str.Unable_to_CreateToolhelp32Snapshot
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x228
ret
lea edx, [esp + 0x14]
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x18]
push edx
push ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x401955
lea eax, [esp + 0x34]
push str.d2client.dll
push eax
call fcn.00405160
add esp, 8
test eax, eax
jne 0x401911
mov esi, 1
lea ecx, [esp + 0x34]
push str.d2lang.dll
push ecx
call fcn.00405160
add esp, 8
test eax, eax
jne 0x40192c
mov esi, 1
lea edx, [esp + 0x34]
push str.d2mr.dll
push edx
call fcn.00405160
add esp, 8
test eax, eax
jne 0x401946
mov ebp, dword [esp + 0x30]
lea eax, [esp + 0x14]
push eax
push ebx
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x4018f6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x40197e
push 0x10
push str.D2MR_Injector_Error_
push str.It_is_not_Diablo_II_window
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x228
ret
test ebp, ebp
je 0x4019a1
push 0x10
push str.D2MR_Injector_Error_
push str.Revealing_already_in_progress_for_selected_window
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x228
ret
mov ecx, dword [esp + 0x10]
push ecx
push 0x40a048
call fcn.00401730
add esp, 8
test eax, eax
jne 0x4019ca
push 0x10
push str.D2MR_Injector_Error_
push str.Error_injecting_dll
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x228
ret
Function at 0x401cf0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x4038f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40a18c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40a188], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40a184], ecx
shr eax, 0x10
mov dword [0x40a180], eax
call fcn.004037c0
test eax, eax
jne 0x401d5a
push 0x1c
call fcn.00401e90
add esp, 4
mov dword [ebp - 4], 0
call fcn.004035c0
call fcn.004035b0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40b590], eax
call fcn.00403180
mov dword [0x40a168], eax
test eax, eax
je 0x401d8d
mov eax, dword [0x40b590]
test eax, eax
jne 0x401d97
push 0xffffffffffffffff
call fcn.00402ae0
add esp, 4
call fcn.00402ed0
call fcn.00402de0
call fcn.00402ab0
mov esi, dword [0x40b590]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401e76
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x401dde
test al, al
je 0x401dde
and eax, 0xff
push eax
call fcn.00402d80
add esp, 4
test eax, eax
je 0x401db8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401db8
cmp byte [esi], 0x22
jne 0x401de7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401df7
cmp al, 0x20
ja 0x401df7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401de7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401e18
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401e1d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00402ae0
jmp 0x401e5b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401de7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401e76

Function at 0x402b20
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40a1bc]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x402b3f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40a1b8], 1
mov byte [0x40a1b4], bl
jne 0x402b99
mov ecx, dword [0x40b588]
test ecx, ecx
je 0x402b87
mov esi, dword [0x40b584]
sub esi, 4
cmp esi, ecx
jb 0x402b87
mov eax, dword [esi]
test eax, eax
je 0x402b80
call eax
mov ecx, dword [0x40b588]
sub esi, 4
cmp esi, ecx
jae 0x402b72
push 0x40701c
push 0x407014
call fcn.00402bd0
add esp, 8
push 0x407024
push 0x407020
call fcn.00402bd0
add esp, 8
test ebx, ebx
jne 0x402bc0
push ebp
mov dword [0x40a1bc], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x403180
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40a2d0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x4031c2
call edi
mov esi, eax
test esi, esi
je 0x4031ac
mov eax, 1
jmp 0x4031bd
call ebp
mov ebx, eax
test ebx, ebx
je 0x4032cf
mov eax, 2
mov dword [0x40a2d0], eax
cmp eax, 1
jne 0x403262
test esi, esi
jne 0x4031db
call edi
mov esi, eax
test esi, esi
je 0x4032cf
cmp word [esi], 0
mov eax, esi
je 0x4031f5
add eax, 2
cmp word [eax], 0
jne 0x4031e3
add eax, 2
cmp word [eax], 0
jne 0x4031e3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x403254
push edi
call fcn.00404200
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403254
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x403246
push ebx
call fcn.004041b0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4032cf
test ebx, ebx
jne 0x403273
call ebp
mov ebx, eax
test ebx, ebx
je 0x4032cf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40328b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40327b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40327b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00404200
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4032ad
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x403a10
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x407468
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x403a34
add eax, 8
inc ebp
cmp eax, 0x4074f8
jb 0x403a25
cmp ecx, dword [ebp*8 + 0x407468]
jne 0x403bdb
mov eax, dword [0x40a170]
cmp eax, 1
je 0x403b9d
test eax, eax
jne 0x403a60
cmp dword [0x4072b8], 1
je 0x403b9d
cmp ecx, 0xfc
je 0x403bdb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403a9b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x403ae4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x406358
add ebx, ecx
push ebx
call fcn.00404a60
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x406338
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40746c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004049d0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40b480]
test eax, eax
je 0x403bae
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x403bb8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40746c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x403cb0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40b580]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x403e5d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x40b480]
lea edi, [ecx*4 + 0x40b480]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x403e5d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x403d1e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x403d2f
push 2
push ebp
push eax
call fcn.00403bf0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x403e8e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x403dd9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x403d8a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x403d77
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x403d5a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403e7f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x403dd5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x403d56
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x403e4e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x403e22
cmp eax, 5
jne 0x403e0b
mov dword [0x40a178], eax
mov dword [0x40a174], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00404b60
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x403e42
cmp byte [ebp], 0x1a
jne 0x403e42
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40a174], 0x1c
jmp 0x403e67
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40a174], 9
pop edi
pop esi
pop ebp
mov dword [0x40a178], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x403dd5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403ebf
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x403dd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x403dd9
Function at 0x409944
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4099f8
jmp 0x4099ed
cmp dword [esi + 0x10], 0x1000
jne 0x4099d9
test byte [esi + 0x15], 1
jne 0x4099d9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409998
cmp eax, 2
je 0x409998
cmp eax, 0x10
je 0x409998
cmp eax, 0x20
jne 0x4099ad
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4099ad
mov bl, 1
xor ebp, ebp
jmp 0x4099be
mov eax, dword [esi]
add eax, ebp
call fcn.0040993c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x4099b1
test bl, bl
je 0x4099d9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4099f8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409970
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x4cce37c8
nop
nop
nop
nop
nop
test eax, eax
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x4acf51bf
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40915c
mov ecx, 0x2a196992
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..reloc_1
nop
mov ebx, 0x42f3f8
mov ecx, 0x341511b0
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x412082
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x418680], 0
push ebx
push esi
mov esi, 0x418688
jne 0x4120ae
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x4186a0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x418680], 1
push dword [0x4186a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x41214b
push 0x14
push 8
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412175
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x418684]
test eax, eax
je 0x4120f0
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x418684], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41217a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x4186a0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412175
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
jmp 0x431219