joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4184f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push edi
push 0x27
lea eax, [ebp - 0x27]
push 0
push eax
call fcn.0041f470
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x28], 0x21128c1
mov word [ebp - 0xc], 0
mov dword [ebp - 8], 0
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
mov word [ebp - 0x24], ax
movzx eax, word [ecx + 0xe]
mov word [ebp - 0x1a], ax
mov al, byte [ecx + 0x10]
add ecx, 0x11
mov byte [ebp - 0x18], al
push ecx
movq qword [ebp - 0x22], xmm0
movzx eax, word [ecx + 8]
movq xmm0, qword [ecx]
mov word [ebp - 0xf], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Family_FROM_Gens_Rank_WHERE_Name_s
push 0x446e50
mov dword [ebp + 8], ecx
movq qword [ebp - 0x17], xmm0
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x418688
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x418688
push str.Family
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4185a7
or ebx, eax
jmp 0x4185ba
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov ebx, eax
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov byte [ebp - 0xb], bl
call edi
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, bl
push eax
push dword [ebp + 8]
push str.EXEC_WZ_GetCharacterGensInfo__s__d
push 0x446e50
call fcn.0041ad00
add esp, 0x10
test al, al
je 0x41866f
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41866f
push str.Rank
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x41861b
or eax, eax
jmp 0x41862c
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.Contribution
mov dword [ebp - 8], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x418642
or eax, eax
jmp 0x418653
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 4], eax
call edi
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call eax
jmp 0x4186a6
push dword [0x446e5c]
call edi
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call eax
jmp 0x4186a2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0xc], 1
push 0x28
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call fcn.0041c330
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41a0c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
test eax, eax
js 0x41a2aa
cmp eax, dword [ecx + 0x218]
jge 0x41a2aa
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x41a2aa
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x816]
cmp eax, dword [edi + 0x108]
jne 0x41a13f
movzx eax, word [ebp - 0x81a]
cmp eax, dword [edi + 0x10c]
jne 0x41a13f
movzx eax, word [ebp - 0x81c]
cmp eax, dword [edi + 0x110]
je 0x41a1fe
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, word [ebp - 0x816]
lea esi, [edi + 0x114]
movzx ecx, word [ebp - 0x81a]
movzx eax, word [ebp - 0x81c]
push edx
push ecx
push eax
mov dword [edi + 0x110], eax
lea eax, [edi + 8]
push eax
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + 0x108], edx
mov dword [edi + 0x10c], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x214], eax
cmp eax, 0xffffffff
jne 0x41a1c9
mov dword [edi + 4], 0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41a1fe
push dword [edi + 0x214]
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.0041f470
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.0041a2d0
add esp, 0x14
lea eax, [ebp - 0x40c]
push 0x400
push 0
push eax
call fcn.0041f470
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
movzx eax, word [ebp - 0x810]
push eax
movzx eax, word [ebp - 0x812]
push eax
movzx eax, word [ebp - 0x814]
push eax
lea eax, [ebp - 0x40c]
push str._02d:_02d:_02d__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x40c]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a284
push 0
lea eax, [ebp - 0x820]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x40c]
push eax
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret
Function at 0x41a3f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
push 0x100
lea ebx, [esi + 0xc]
push ebx
call fcn.0042136d
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41a448
push ebx
lea eax, [esi + 0x218]
push str.__s__Could_not_open_file
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x41a46b
push eax
call fcn.0041df1d
add esp, 4
mov dword [esi + 4], 0
push dword [esi + 8]
call fcn.0041df22
add esp, 4
mov dword [esi + 4], eax
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push 0
push ecx
push dword [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a4bb
push ebx
lea eax, [esi + 0x218]
push str.__s__Could_not_read_file
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x214], eax
mov al, 1
pop esi
pop ebx
pop ebp
ret 4
Function at 0x41b820
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
jmp 0x41b846
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
jmp 0x41b85f
mov eax, dword [0x446d78]
test eax, eax
jne 0x41b94e
imul edi, eax, 0x214
inc eax
push 0x4423f8
push 0x100
mov dword [0x446d78], eax
add edi, 0x446b64
lea ebx, [edi + 4]
mov dword [edi], 1
push ebx
call fcn.0042136d
add esp, 0xc
cmp dword [edi], 0
je 0x41b94e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x12]
lea esi, [edi + 0x110]
movzx ecx, word [ebp - 0x16]
movzx eax, word [ebp - 0x18]
push edx
push ecx
push eax
push ebx
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + 0x104], edx
mov dword [edi + 0x108], ecx
mov dword [edi + 0x10c], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x210], eax
cmp eax, 0xffffffff
jne 0x41b92a
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret 4
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41b94e
push dword [edi + 0x210]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret 4
Function at 0x41c050
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
je 0x41c076
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x70]
call ebx
mov dword [edi + 0x70], 0
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x41c087
push eax
call ebx
mov dword [edi + 0x6c], 0
push esi
lea ecx, [edi + 0x38]
call fcn.0041b3c0
lea esi, [edi + 0x14]
mov ebx, 8
mov eax, dword [esi]
test eax, eax
je 0x41c0b5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x41c098
mov eax, dword [edi + 0x10]
pop esi
test eax, eax
je 0x41c0e1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov dword [edi + 0x10], 0
jmp 0x41c0e7
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
test eax, eax
je 0x41c0f8
push eax
call ebx
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x41c10e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
pop edi
pop ebx
ret
Function at 0x41c330
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x5107f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x41c498
cmp edi, 0x14
jge 0x41c498
imul ecx, edi, 0x68
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x5118fc]
test eax, eax
js 0x41c498
cmp eax, 0x14
jge 0x41c498
cmp dword [ecx + 0x511900], 0
je 0x41c498
cmp dword [ecx + 0x511914], 0xffffffff
je 0x41c498
mov eax, dword [ebp + 0x10]
cmp eax, 0x2000
jle 0x41c3af
push eax
push edi
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.0041cff0
add esp, 0x10
jmp 0x41c498
mov ebx, dword [ecx + 0x51191c]
cmp dword [ebx + 0x20], 0
jle 0x41c416
mov edx, dword [ebx + 0x42028]
lea ecx, [edx + eax]
cmp ecx, 0x40000
jle 0x41c3e2
push ecx
push edi
push str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.0041cff0
add esp, 0x10
jmp 0x41c48d
push eax
push dword [ebp + 0xc]
lea eax, [ebx + 0x2028]
add eax, edx
push eax
call fcn.00420a40
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ebx + 0x42028], ecx
push 0x5107f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
push dword [ebp + 0xc]
lea esi, [ebx + 0x24]
push esi
call fcn.00420a40
mov ecx, dword [ebp + 0x10]
lea eax, [ebx + 0x14]
add esp, 0xc
mov dword [eax], ecx
mov dword [ebx + 0x20], ecx
lea ecx, [ebp + 8]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], 1
push 0
push ebx
push 0
push ecx
push 1
push eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x2024], 0
mov dword [ebp + 8], 0
push dword [eax + 0x511914]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x41c400
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x41c400
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.0041cff0
add esp, 0xc
push edi
mov ecx, 0x510778
call fcn.0041c4b0
push 0x5107f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41c680
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
lea edi, [esi + 0x78]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
js 0x41c80f
cmp ebx, 0x14
jge 0x41c80f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41c6ba
mov ecx, esi
jmp 0x41c809
mov esi, dword [ebp + 0x10]
imul eax, ebx, 0x68
mov edx, dword [esi + 0x2024]
add edx, ecx
mov ecx, dword [esi + 0x20]
mov dword [ebp + 0xc], eax
mov dword [esi + 0x2024], edx
cmp edx, ecx
jl 0x41c7a8
mov eax, dword [esi + 0x42028]
test eax, eax
jg 0x41c6fd
push edi
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esi + 0x2028]
lea ecx, [esi + 0x24]
cmp eax, 0x2000
jle 0x41c772
push 0x2000
push edx
push ecx
call fcn.00420a40
lea eax, [esi + 0x24]
mov dword [esi + 0x14], 0x2000
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x42028]
sub eax, 0x2000
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0x2000
push eax
lea eax, [esi + 0x4028]
mov dword [esi + 0x2024], 0
push eax
lea eax, [esi + 0x2028]
push eax
call fcn.00420a40
add esp, 0xc
lea eax, [esi + 0x14]
sub dword [esi + 0x42028], 0x2000
jmp 0x41c7be
push eax
push edx
push ecx
call fcn.00420a40
lea eax, [esi + 0x24]
mov dword [esi + 0x2024], 0
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x42028]
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x42028], 0
jmp 0x41c7b7
lea eax, [esi + 0x24]
add eax, edx
sub ecx, edx
mov dword [esi + 0x18], eax
lea eax, [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x1c], 1
push 0
push esi
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push 1
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x511914]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x41c80f
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x41c80f
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.0041cff0
mov ecx, dword [ebp - 4]
add esp, 0xc
push ebx
call fcn.0041c4b0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41cf60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x41cf88
lea eax, [ebp - 0x104]
push 0x100
push 0
push eax
call fcn.0041f470
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x104]
call fcn.0041d120
add esp, 0x10
lea eax, [ebp - 0x104]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x41cfd8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x41e753
Capabilities:
Parse pe header

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

Function at 0x42b202
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4390a0
push 0x439098
push str.FlsAlloc
push 0x1f
call fcn.0042b0c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b236
push dword [ebp + 8]
mov ecx, esi
call dword [0x436268]
call esi
jmp 0x42b23c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42b280
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4390b0
push 0x4390a8
push str.FlsGetValue
push 0x21
call fcn.0042b0c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b2b7
push dword [ebp + 8]
mov ecx, esi
call dword [0x436268]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42b2bf
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.SunMonTueWedThuFriSat
push 0x4390b0
push str.FlsSetValue
push 0x22
call fcn.0042b0c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b2f9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x436268]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42d67e
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 0x42d71b
push ebx
push esi
call fcn.0042d647
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.0042d5db
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42d6c8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42d71a
push edi
push eax
call fcn.004299a9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42d6e8
call fcn.0042996f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42d719
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042d5db
add esp, 0x20
test eax, eax
jne 0x42d707
push edi
call fcn.0042996f
jmp 0x42d70f
push ebx
call fcn.0042996f
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

Function at 0x42d71e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42d72f
pop esi
ret
push ebx
push edi
push esi
call fcn.0042d647
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004299a9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42d757
push ebx
push esi
push edi
call fcn.00420a40
add esp, 0xc
push 0
call fcn.0042996f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42db27
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042d76c
Function at 0x434d90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x434dbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x434dbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x405080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x88]
push 0
push ecx
push dword [ebp + 0xc]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x2010
push 0
push 0
push 0xa
push dword [ebp + 0x10]
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00402ad0
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x88]
push eax
push 2
push 0x404130
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401160
mov esp, ebp
pop ebp
ret

Function at 0x401a20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x405080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x2080
push 8
push 8
push 0x10
push eax
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00402ad0
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401160
mov esp, ebp
pop ebp
ret

Function at 0x401a90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x405080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x1000]
cmp eax, 0x2000
jb 0x401ad4
xor eax, eax
cmp byte [esi], al
je 0x401ac7
lea ebx, [ebx]
inc eax
cmp byte [esi + eax], 0
jne 0x401ac0
push 0
lea ecx, [ebp - 0x88]
push ecx
push eax
push esi
jmp 0x401b43
push 0
lea eax, [ebp - 0x88]
push eax
push 0xb
push str._pszString
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x2080
push 8
push 8
push 0x10
push esi
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00402ad0
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x88]
push eax
push 1
push 0x404140
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401160
mov esp, ebp
pop ebp
ret
Function at 0x401b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x405080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x2000
push 0
push 0
push 0xa
push dword [ebp + 8]
lea eax, [ebp - 0xac]
push 0xa8
push eax
call fcn.00402ad0
push 0x2008
push 0
push 0
mov word [ebp + eax - 0xac], 0x2820
lea esi, [eax + 2]
push 0x10
push dword [ebp + 8]
mov eax, 0xa8
sub eax, esi
push eax
lea eax, [ebp - 0xac]
add eax, esi
push eax
call fcn.00402ad0
add esp, 0x38
lea ecx, [ebp - 0xb0]
add eax, esi
push 0
mov byte [ebp + eax - 0xac], 0x29
inc eax
push ecx
push eax
lea eax, [ebp - 0xac]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401160
mov esp, ebp
pop ebp
ret

Function at 0x401c20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x405080]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x2008
push 0
push 0
push 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00402ad0
add esp, 0x1c
lea ecx, [ebp - 0x88]
push 0
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401160
mov esp, ebp
pop ebp
ret

Function at 0x402580
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [0x4055d0]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x4025ad
push 0x17
mov ecx, esi
call dword [section..rdata]
call esi
test eax, eax
je 0x4025ad
mov ecx, edi
int 0x29
mov esi, dword [0x4055c4]
test esi, esi
je 0x4025c6
mov ecx, esi
call dword [section..rdata]
call esi
test eax, eax
je 0x4025c6
int3
mov esi, dword [0x4055c8]
test esi, esi
je 0x402640
cmp dword [0x4055cc], 0
je 0x402640
push 0
mov ecx, esi
call dword [section..rdata]
call esi
mov eax, dword [ebx + 0xb8]
push 0x38
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x38]
push 0
push eax
mov dword [ebp - 0x50], 0xc0000409
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], edi
call fcn.00401320
mov esi, dword [0x4055cc]
lea eax, [ebp - 0x50]
add esp, 0xc
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], ebx
mov ecx, esi
push eax
call dword [section..rdata]
call esi
lea ebx, [ebx]
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x402640