joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c9c38
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.004e1b30
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4c9c84
push ebx
call fcn.004e0494
add esp, 4
pop eax
mov dword [ebp - 4], eax
push VariantClear
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4c9c9b
mov eax, 0x56cd29
push eax
push 1
mov ebx, 0x130
call fcn.004e0f90
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4c9cd6
push 6
call fcn.004e04a0
add esp, 4
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push VariantClear
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4c9cf6
mov eax, 0x56cd29
push eax
push 2
mov ebx, 0x134
call fcn.004e16a0
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4c9d20
push ebx
call fcn.004e0494
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4c9d40
push eax
mov ebx, eax
call fcn.004b5e0b
inc eax
push eax
call fcn.004e049a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4c9d45
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4c9d56
push ebx
call fcn.004e0494
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x4cf0b7
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4cf0e7
push 6
call fcn.004e04a0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x4cf0fb
mov esp, ebp
pop ebp
ret 4

Function at 0x4d0d59
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
mov eax, 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4d0da9
push 6
call fcn.004e04a0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
jne 0x4d0ddd
mov dword [ebp - 8], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4d0dd8
push 6
call fcn.004e04a0
add esp, 4
jmp 0x4d0de5
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
cmp dword [ebp - 4], 0
mov eax, 0
setne al
jmp 0x4d0df6
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4e0fd0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4e0fee
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4e0fe3
pop esi
ret
Function at 0x4e28e0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.004e3f3e
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x4e294a
push esi
lea edi, [eax + 0x400]
call fcn.004e3cf8
push edi
call fcn.004e3f3e
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x4e291a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4e2966
push ecx
push esi
call fcn.004e2d80
add esp, 8
mov ebx, eax
push esi
call fcn.004e3cf8
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4f0723
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4f0743
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004efd6a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4f0766
test byte [esp + 8], 2
je 0x4f0766
call fcn.004efddd
mov dword [eax], 0xd
call fcn.004efde6
mov dword [eax], 5
jmp 0x4f073f
xor eax, eax
ret

Function at 0x5016f5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x50172d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ff782
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ff75a
jmp 0x501739
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x502de3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x502e25
call fcn.005088e7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x502e25
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x502e1c
xor eax, eax
jmp 0x502e2d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00502e33
pop edi
pop esi
pop ebx
ret 4
Function at 0x508e17
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 0x508e45
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x508e63
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00508d7d
jmp 0x508e63
mov eax, dword [esi + 0x14]
test eax, eax
je 0x508e63
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00508d7d
test edi, edi
mov eax, edi
jne 0x508e4d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40196c
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
cmp dword [0x1151013], 0
jne 0x401ba3
push 0x80000301
push 0
push 0x40
push 1
mov ebx, 0x184
call fcn.0055ed90
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4019be
push ebx
call fcn.0055df58
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4019eb
push 0xb8
push 0x405e9ed
push 6
call fcn.0055df5e
add esp, 0xc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0055eaf0
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push 0x5bc295
mov ecx, 2
call fcn.004010b8
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x401a30
push ebx
call fcn.0055df58
add esp, 4
mov dword [ebp - 0x18], esp
push 0x40
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x401a64
push 0xb8
push 0x405e9ed
push 6
call fcn.0055df5e
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x401a74
push ebx
call fcn.0055df58
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x401a87
mov eax, 0x5bc2a6
push eax
push 1
mov ebx, 0x164
call fcn.0055edc0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
fld qword [ebp - 0x14]
call fcn.00401945
mov dword [0x1151013], eax
cmp dword [0x1151013], 0
jne 0x401ba3
call fcn.00401bc3
mov dword [0x1151013], eax
mov dword [ebp - 8], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x401aed
push 0x1c1
push 0x405e9ed
push 6
call fcn.0055df5e
add esp, 0xc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0055eaf0
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push 0x5bc295
mov ecx, 2
call fcn.004010b8
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x401b32
push ebx
call fcn.0055df58
add esp, 4
push 0x80000301
push 0
push dword [0x1151013]
push 1
mov ebx, 0x168
call fcn.0055eaf0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x401b83
push 0x1d6
push 0x405e9ed
push 6
call fcn.0055df5e
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x401b93
push ebx
call fcn.0055df58
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x401ba3
push ebx
call fcn.0055df58
add esp, 4
mov eax, dword [0x1151013]
jmp 0x401bad
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401bbe
push ebx
call fcn.0055df58
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x402584
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1151017], 0
jne 0x40262f
mov eax, 0x5bc2cf
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.004026b1
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4025c5
push ebx
call fcn.0055df58
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [0x1151017], eax
cmp dword [0x1151017], 0
jne 0x40262f
mov dword [ebp - 8], esp
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x402603
push 0xd2
push 0x405ea52
push 6
call fcn.0055df5e
add esp, 0xc
mov dword [0x1151017], eax
push dword [0x1151017]
mov eax, 0x5bc2cf
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00402af7
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40262f
push ebx
call fcn.0055df58
add esp, 4
mov dword [ebp - 8], esp
push dword [0x1151017]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40265e
push 0x163
push 0x405ea52
push 6
call fcn.0055df5e
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4026a5
call fcn.00402bf2
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push dword [0x1151017]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4026a5
push 0x1e1
push 0x405ea52
push 6
call fcn.0055df5e
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x4026ad
mov esp, ebp
pop ebp
ret
Function at 0x4026df
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
cmp dword [0x115101b], 0
jne 0x402916
push 0x80000301
push 0
push 0x40
push 1
mov ebx, 0x184
call fcn.0055ed90
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402731
push ebx
call fcn.0055df58
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40275e
push 0xb8
push 0x405ea76
push 6
call fcn.0055df5e
add esp, 0xc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0055eaf0
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push 0x5bc295
mov ecx, 2
call fcn.004010b8
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4027a3
push ebx
call fcn.0055df58
add esp, 4
mov dword [ebp - 0x18], esp
push 0x40
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4027d7
push 0xb8
push 0x405ea76
push 6
call fcn.0055df5e
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4027e7
push ebx
call fcn.0055df58
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4027fa
mov eax, 0x5bc2a6
push eax
push 1
mov ebx, 0x164
call fcn.0055edc0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
fld qword [ebp - 0x14]
call fcn.00401945
mov dword [0x115101b], eax
cmp dword [0x115101b], 0
jne 0x402916
call fcn.00402936
mov dword [0x115101b], eax
mov dword [ebp - 8], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x402860
push 0x1c1
push 0x405ea76
push 6
call fcn.0055df5e
add esp, 0xc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0055eaf0
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push 0x5bc295
mov ecx, 2
call fcn.004010b8
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4028a5
push ebx
call fcn.0055df58
add esp, 4
push 0x80000301
push 0
push dword [0x115101b]
push 1
mov ebx, 0x168
call fcn.0055eaf0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4028f6
push 0x1d6
push 0x405ea76
push 6
call fcn.0055df5e
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x402906
push ebx
call fcn.0055df58
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402916
push ebx
call fcn.0055df58
add esp, 4
mov eax, dword [0x115101b]
jmp 0x402920
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402931
push ebx
call fcn.0055df58
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x402fe4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push 0x40
push 0x1000
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x403028
push 0x12
push 0x405ea65
push 6
call fcn.0055df5e
add esp, 0xc
jmp 0x40302d
mov esp, ebp
pop ebp
ret 4

Function at 0x4038c5
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push 0x40
push 0x1000
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x403909
push 0x12
push 0x405e98b
push 6
call fcn.0055df5e
add esp, 0xc
jmp 0x40390e
mov esp, ebp
pop ebp
ret 4
Function at 0x4076fc
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x115102f], 0
jne 0x4077a7
mov eax, 0x5bc5ea
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00401917
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40773d
push ebx
call fcn.0055df58
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [0x115102f], eax
cmp dword [0x115102f], 0
jne 0x4077a7
mov dword [ebp - 8], esp
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40777b
push 0xc6
push 0x405e9e9
push 6
call fcn.0055df5e
add esp, 0xc
mov dword [0x115102f], eax
push dword [0x115102f]
mov eax, 0x5bc5ea
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.004032b9
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4077a7
push ebx
call fcn.0055df58
add esp, 4
mov dword [ebp - 8], esp
push dword [0x115102f]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4077d6
push 0x138
push 0x405e9e9
push 6
call fcn.0055df5e
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40781d
call fcn.00401bc3
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push dword [0x115102f]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40781d
push 0x1b6
push 0x405e9e9
push 6
call fcn.0055df5e
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x407825
mov esp, ebp
pop ebp
ret

Function at 0x407bb9
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1151033], 0
jne 0x407c64
mov eax, 0x5bc5ea
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00407ce6
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x407bfa
push ebx
call fcn.0055df58
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [0x1151033], eax
cmp dword [0x1151033], 0
jne 0x407c64
mov dword [ebp - 8], esp
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x407c38
push 0xc6
push 0x405ea43
push 6
call fcn.0055df5e
add esp, 0xc
mov dword [0x1151033], eax
push dword [0x1151033]
mov eax, 0x5bc5ea
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0040812c
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x407c64
push ebx
call fcn.0055df58
add esp, 4
mov dword [ebp - 8], esp
push dword [0x1151033]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x407c93
push 0x138
push 0x405ea43
push 6
call fcn.0055df5e
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x407cda
call fcn.00407f6b
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push dword [0x1151033]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x407cda
push 0x1b6
push 0x405ea43
push 6
call fcn.0055df5e
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x407ce2
mov esp, ebp
pop ebp
ret
Function at 0x407d14
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
cmp dword [0x1151037], 0
jne 0x407f4b
push 0x80000301
push 0
push 0x40
push 1
mov ebx, 0x184
call fcn.0055ed90
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407d66
push ebx
call fcn.0055df58
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x407d93
push 0xb8
push 0x405ea47
push 6
call fcn.0055df5e
add esp, 0xc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0055eaf0
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push 0x5bc295
mov ecx, 2
call fcn.004010b8
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x407dd8
push ebx
call fcn.0055df58
add esp, 4
mov dword [ebp - 0x18], esp
push 0x40
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x407e0c
push 0xb8
push 0x405ea47
push 6
call fcn.0055df5e
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407e1c
push ebx
call fcn.0055df58
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x407e2f
mov eax, 0x5bc2a6
push eax
push 1
mov ebx, 0x164
call fcn.0055edc0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
fld qword [ebp - 0x14]
call fcn.00401945
mov dword [0x1151037], eax
cmp dword [0x1151037], 0
jne 0x407f4b
call fcn.00407f6b
mov dword [0x1151037], eax
mov dword [ebp - 8], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x407e95
push 0x1c1
push 0x405ea47
push 6
call fcn.0055df5e
add esp, 0xc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0055eaf0
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push 0x5bc295
mov ecx, 2
call fcn.004010b8
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x407eda
push ebx
call fcn.0055df58
add esp, 4
push 0x80000301
push 0
push dword [0x1151037]
push 1
mov ebx, 0x168
call fcn.0055eaf0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x407f2b
push 0x1d6
push 0x405ea47
push 6
call fcn.0055df5e
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407f3b
push ebx
call fcn.0055df58
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x407f4b
push ebx
call fcn.0055df58
add esp, 4
mov eax, dword [0x1151037]
jmp 0x407f55
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407f66
push ebx
call fcn.0055df58
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x4089b6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x5bc3fc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4089f4
push 0x36
push 0x405e938
push 6
call fcn.0055df5e
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 0x5bc657
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x408a28
push 0x36
push 0x405e938
push 6
call fcn.0055df5e
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x408b22
mov dword [ebp - 8], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x408a5e
push 0x94
push 0x405e938
push 6
call fcn.0055df5e
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
mov eax, 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 9
push dword [ebp - 0xc]
call dword [0x11518f7]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x408aa7
push 0x94
push 0x405e938
push 6
call fcn.0055df5e
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x408b22
mov dword [ebp - 8], esp
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x408adf
push 0x132
push 0x405e938
push 6
call fcn.0055df5e
add esp, 0xc
push eax
call fcn.00408b56
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x14], eax
jne 0x408b22
mov dword [ebp - 8], esp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 8], esp
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x4094f3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x115102b
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jne 0x409555
mov dword [ebp - 4], esp
push 0x10
push 0x5bc2a6
push 0x5bc688
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x409555
push 0x41
push 0x405e953
push 6
call fcn.0055df5e
add esp, 0xc
push 0x115102b
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x30]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jne 0x40957b
push 0
call fcn.004089b6
mov dword [ebp - 4], esp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40acd7
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [0x11518ff]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40ad0f
push 0x24
push 0x405e424
push 6
call fcn.0055df5e
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40ad6c
mov dword [ebp - 4], esp
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [0x1151903]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40ad4b
push 0x74
push 0x405e424
push 6
call fcn.0055df5e
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40ad6c
pushal
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
rep movsb byte es:[edi], byte [esi]
popal
mov eax, dword [ebp + 0x10]
leave
ret 0xc
mov eax, 0
jmp 0x40ad76
mov esp, ebp
pop ebp
ret 0xc