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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x28], 0x21128c1
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 0x43ddd8
mov dword [ebp + 8], ecx
movq qword [ebp - 0x17], xmm0
mov byte [ebp - 0xd], al
mov word [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.00414490
add esp, 0xc
test al, al
je 0x411fa8
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x411fa8
push str.Family
call fcn.004146e0
cmp eax, 0xffffffff
jne 0x411ec7
or ebx, eax
jmp 0x411eda
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d98e
add esp, 4
mov ebx, eax
push dword [0x43dde4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov byte [ebp - 0xb], bl
call edi
push 2
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, bl
push eax
push dword [ebp + 8]
push str.EXEC_WZ_GetCharacterGensInfo__s__d
push 0x43ddd8
call fcn.00414490
add esp, 0x10
test al, al
je 0x411f8f
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x411f8f
push str.Rank
call fcn.004146e0
cmp eax, 0xffffffff
jne 0x411f3b
or eax, eax
jmp 0x411f4c
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d98e
add esp, 4
push str.Contribution
mov dword [ebp - 8], eax
call fcn.004146e0
cmp eax, 0xffffffff
jne 0x411f62
or eax, eax
jmp 0x411f73
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d98e
add esp, 4
push dword [0x43dde4]
mov dword [ebp - 4], eax
call edi
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43dde4]
call eax
jmp 0x411fc6
push dword [0x43dde4]
call edi
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43dde4]
call eax
jmp 0x411fc2
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43dde4]
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.00415d90
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x413880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x43d040]
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 0x413a6a
cmp eax, dword [ecx + 0x218]
jge 0x413a6a
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x413a6a
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x816]
cmp eax, dword [edi + 0x108]
jne 0x4138ff
movzx eax, word [ebp - 0x81a]
cmp eax, dword [edi + 0x10c]
jne 0x4138ff
movzx eax, word [ebp - 0x81c]
cmp eax, dword [edi + 0x110]
je 0x4139be
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 0x413989
mov dword [edi + 4], 0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417417
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 0x4139be
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.00417417
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.00418c30
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.00413a90
add esp, 0x14
lea eax, [ebp - 0x40c]
push 0x400
push 0
push eax
call fcn.00418c30
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 0x413a44
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.00417417
mov esp, ebp
pop ebp
ret
Function at 0x413bb0
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.0041ab2d
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 0x413c08
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 0x413c2b
push eax
call fcn.004176d7
add esp, 4
mov dword [esi + 4], 0
push dword [esi + 8]
call fcn.004176dc
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 0x413c7b
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 0x415ab0
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 0x415ad6
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 0x415ae7
push eax
call ebx
mov dword [edi + 0x6c], 0
push esi
lea ecx, [edi + 0x38]
call fcn.00414b50
lea esi, [edi + 0x14]
mov ebx, 8
mov eax, dword [esi]
test eax, eax
je 0x415b15
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 0x415af8
mov eax, dword [edi + 0x10]
pop esi
test eax, eax
je 0x415b41
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 0x415b47
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
test eax, eax
je 0x415b58
push eax
call ebx
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x415b6e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
pop edi
pop ebx
ret
Function at 0x415d90
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 0x5d06f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x415ef8
cmp edi, 0x14
jge 0x415ef8
imul ecx, edi, 0x68
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x5d18ac]
test eax, eax
js 0x415ef8
cmp eax, 0x14
jge 0x415ef8
cmp dword [ecx + 0x5d18b0], 0
je 0x415ef8
cmp dword [ecx + 0x5d18c4], 0xffffffff
je 0x415ef8
mov eax, dword [ebp + 0x10]
cmp eax, 0x2000
jle 0x415e0f
push eax
push edi
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.00416c70
add esp, 0x10
jmp 0x415ef8
mov ebx, dword [ecx + 0x5d18cc]
cmp dword [ebx + 0x20], 0
jle 0x415e76
mov edx, dword [ebx + 0x42028]
lea ecx, [edx + eax]
cmp ecx, 0x40000
jle 0x415e42
push ecx
push edi
push str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.00416c70
add esp, 0x10
jmp 0x415eed
push eax
push dword [ebp + 0xc]
lea eax, [ebx + 0x2028]
add eax, edx
push eax
call fcn.0041a200
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ebx + 0x42028], ecx
push 0x5d06f0
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.0041a200
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 + 0x5d18c4]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x415e60
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x415e60
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.00416c70
add esp, 0xc
push edi
mov ecx, 0x5d0678
call fcn.00415f30
push 0x5d06f0
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 0x416100
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
lea ebx, [esi + 0x78]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x41629c
cmp edi, 0x14
jge 0x41629c
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x416147
push edi
push str._SocketManager__Server___d__disconnected_send_Size__0
push 1
call fcn.00416c70
mov ecx, esi
jmp 0x416293
mov esi, dword [ebp + 0x10]
imul eax, edi, 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 0x416235
mov eax, dword [esi + 0x42028]
test eax, eax
jg 0x41618a
push ebx
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 0x4161ff
push 0x2000
push edx
push ecx
call fcn.0041a200
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.0041a200
add esp, 0xc
lea eax, [esi + 0x14]
sub dword [esi + 0x42028], 0x2000
jmp 0x41624b
push eax
push edx
push ecx
call fcn.0041a200
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 0x416244
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 + 0x5d18c4]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x41629c
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x41629c
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.00416c70
mov ecx, dword [ebp - 4]
add esp, 0xc
push edi
call fcn.00415f30
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416a30
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea esi, [ebx + 0x13]
push esi
lea edi, [ebx + 8]
push edi
push str.SELECT_account_FROM_TRADE_X_WHERE_account_s_and_name_s
push 0x43ddd8
call fcn.00414490
add esp, 0x10
test al, al
je 0x416b1d
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x416b1d
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp byte [ebx + 0x7aa], 0
jne 0x416acb
push esi
push edi
push str.DELETE_FROM_TRADE_X_WHERE_account_s_and_name_s
push 0x43ddd8
call fcn.00414490
add esp, 0x10
push dword [0x43dde4]
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43dde4]
call eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x5cf8e0
push 0
lea eax, [ebx + 0x29]
mov dword [0x5cf8e0], 0x780
push eax
push 0
push 0x780
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
movzx eax, byte [ebx + 0x7a9]
push esi
push edi
push eax
lea eax, [ebx + 0x1e]
push eax
push str.UPDATE_TRADE_X_SET_Items__targetname_s__state_d_WHERE_account_s_and_name_s
push 0x43ddd8
call fcn.00414490
add esp, 0x18
jmp 0x416aa8
push dword [0x43dde4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43dde4]
call esi
movzx eax, byte [ebx + 0x7a9]
push eax
lea eax, [ebx + 0x13]
push eax
lea eax, [ebx + 8]
push eax
push str.INSERT_INTO_TRADE_X__account_name__state__date__VALUES___s___s___d__getdate___
push 0x43ddd8
call fcn.00414490
add esp, 0x14
push dword [0x43dde4]
call edi
push 2
push dword [0x43dde4]
call esi
lea eax, [ebx + 0x13]
push eax
lea eax, [ebx + 8]
push eax
push 0x780
push 0x780
push str.UPDATE_TRADE_X_SET_ItemsCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_account_s_AND_name_s
push 0x43ddd8
call fcn.00414490
add esp, 0x18
push dword [0x43dde4]
call edi
push 2
push dword [0x43dde4]
call esi
push 0x5cf8e0
push 0
lea eax, [ebx + 0x29]
mov dword [0x5cf8e0], 0x780
push eax
push 0
push 0x780
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
lea eax, [ebx + 0x13]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 0x1e]
push eax
push str.UPDATE_TRADE_X_SET_Items__targetname_s_WHERE_account_s_and_name_s
push 0x43ddd8
call fcn.00414490
add esp, 0x14
push dword [0x43dde4]
call edi
push 2
push dword [0x43dde4]
call esi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x416c10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x43d040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00418c30
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x104]
call fcn.00416e20
add esp, 0x10
lea eax, [ebp - 0x104]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x417f0d
Capabilities:
Parse pe header

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

Function at 0x4233b3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432828
push 0x432820
push str.FlsAlloc
push 0x1f
call fcn.00423272
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4233e7
push dword [ebp + 8]
mov ecx, esi
call dword [0x430268]
call esi
jmp 0x4233ed
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x423431
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432838
push 0x432830
push str.FlsGetValue
push 0x21
call fcn.00423272
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423468
push dword [ebp + 8]
mov ecx, esi
call dword [0x430268]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x423470
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432840
push 0x432838
push str.FlsSetValue
push 0x22
call fcn.00423272
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4234aa
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x430268]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x426e50
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 0x426eed
push ebx
push esi
call fcn.00426e19
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.00426dad
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x426e9a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x426eec
push edi
push eax
call fcn.0042360f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x426eba
call fcn.004235d5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x426eeb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00426dad
add esp, 0x20
test eax, eax
jne 0x426ed9
push edi
call fcn.004235d5
jmp 0x426ee1
push ebx
call fcn.004235d5
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 0x426ef0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x426f01
pop esi
ret
push ebx
push edi
push esi
call fcn.00426e19
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042360f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x426f29
push ebx
push esi
push edi
call fcn.0041a200
add esp, 0xc
push 0
call fcn.004235d5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4272f9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00426f3e
Function at 0x42e560
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42e58d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42e58d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x825058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008251a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x82507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x82506a
add dl, dl
jne 0x825089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8250dc
xor eax, eax
add dl, dl
jne 0x825096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x82517d
add dl, dl
jne 0x8250a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8250b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8250bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8250c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8250d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x825075
mov eax, 1
add dl, dl
jne 0x8250ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8250f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8250e1
sub eax, ebx
mov ebx, 1
jne 0x825128
mov ecx, 1
add dl, dl
jne 0x82510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x825119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x825105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x825075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x82513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x82514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x825136
cmp eax, 0x7d00
jae 0x82516d
cmp eax, 0x500
jb 0x825168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x825075
cmp eax, 0x7f
ja 0x825170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x825075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x82519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x825075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10