joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b270
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x41b2d4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00429508
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00417204
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b2db
lea eax, [ebp - 0xc]
call fcn.004292a0
ret

Function at 0x4285f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x44a368]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x428690
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x428670
xor eax, eax
push ebp
push 0x428669
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4286ac
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428670
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x44a368]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x44a368], ax
mov esp, ebp
pop ebp
ret

Function at 0x429124
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44eb88], 0
je 0x429185
cmp word [0x44ed5c], 0xd7b2
jne 0x42914d
cmp dword [0x44ed64], 0
jbe 0x42914d
mov eax, 0x44ed58
call dword [0x44ed74]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4291ac
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x44a378], 0
jne 0x4291a1
push 0
push 0x44a3d0
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x42ab74
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42ada4
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42abf7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42ada4
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42abf7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42adc0
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x42ac80
xor eax, eax
push ebp
push 0x42ac79
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0042a9bc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x42ac5e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x42ade0
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x42ac5e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ac80
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x42ad9a
cmp byte [ebp - 0xd], 0
jne 0x42acc7
cmp byte [ebp - 0x12], 0
je 0x42ad9a
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x42ace0
dec ebx
cmp byte [ebx], 0x2e
je 0x42acef
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x42acdf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x42ad9a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x42ad2c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x42ad9a
cmp byte [ebp - 0xd], 0
je 0x42ad9a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x42ad9a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b4e0
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x44f0fc], 1
jae 0x42b566
mov byte [0x44a364], 2
mov dword [0x44eb4c], 0x43ac74
mov dword [0x44eb50], 0x43ac86
mov byte [0x44eb8a], 2
mov dword [0x44eb38], 0x42a1ac
call fcn.004285c8
test al, al
je 0x42b523
call fcn.004285f8
call fcn.004286bc
mov word [0x44eb90], 0xd7b0
mov word [0x44ed5c], 0xd7b0
mov word [0x44ef28], 0xd7b0
call fcn.0042a084
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x44eb7c], eax
call fcn.004266cc
mov dword [0x44eb78], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x44eb70], eax
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x42d760
call fcn.0042ebec
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x42d77c
test bl, 1
je 0x42d77c
call fcn.00435040
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x42d960
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0042e788
test byte [ebp + 0xd], 0xc0
jne 0x42d984
mov eax, dword [0x44b2a4]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x42d991
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x42d9be
je 0x42d9d0
sub ecx, 0x100
je 0x42d9de
sub ecx, 0x100
je 0x42d9e5
sub ecx, 0x100
je 0x42d9d7
jmp 0x42d9ec
sub ecx, 0x600
je 0x42d9e5
sub ecx, 0x100
je 0x42d9d0
jmp 0x42d9ec
mov edi, 1
jmp 0x42d9f1
mov edi, 2
jmp 0x42d9f1
mov edi, 4
jmp 0x42d9f1
mov edi, 5
jmp 0x42d9f1
mov edi, 3
test byte [ebp + 0xd], 1
je 0x42da18
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x44ad1c]
test al, 0x80
je 0x42da11
mov ebx, 0x80
jmp 0x42da2a
mov ebx, 1
jmp 0x42da2a
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x42da2a
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x42da3c
je 0x42da45
dec eax
je 0x42da4e
jmp 0x42da57
mov dword [ebp - 4], SysReAllocStringLen
jmp 0x42da66
mov dword [ebp - 4], 0x40000000
jmp 0x42da66
mov dword [ebp - 4], 0xc0000000
jmp 0x42da66
push 1
call fcn.0042eb80
pop ecx
mov ebx, eax
jmp 0x42db56
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x42da82
sub eax, 0x10
je 0x42da89
sub eax, 0x10
je 0x42da92
sub eax, 0x10
je 0x42da9b
jmp 0x42da9b
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x42daa2
mov dword [ebp - 8], 1
jmp 0x42daa2
mov dword [ebp - 8], 2
jmp 0x42daa2
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x42db0f
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x42db04
test byte [ebp + 0xd], 1
je 0x42daff
mov ebx, 0x50
jmp 0x42db04
mov ebx, 2
push ebx
call fcn.0042eb80
pop ecx
mov ebx, eax
jmp 0x42db56
mov edi, esi
push edi
call fcn.0042d8c4
pop ecx
test eax, eax
je 0x42db23
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x42db2f
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0042e8a8
add esp, 8
mov ebx, eax
inc eax
jne 0x42db56
push 4
call fcn.0042eb80
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0042e7bc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431f44
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.0042c490
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.0042c520
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.0042c520
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x44bfc5
lea ecx, [ebp - 0x200]
push ecx
call fcn.0042c490
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.0042c520
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.00433134
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x432055
push esi
call fcn.0042c520
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.0042c520
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.0042bdac
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x43202c
xor eax, eax
jmp 0x4320dc
push esi
call fcn.0042c520
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.0042c520
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.0042c3ec
add esp, 0xc
jmp 0x432095
mov edi, dword [ebx + 0x24]
push edi
call fcn.0042c520
pop ecx
push eax
push esi
call fcn.0042c520
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.0042c520
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.0042bdcc
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x432095
xor eax, eax
jmp 0x4320dc
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.0042c490
add esp, 8
push 0x44bfc7
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0042c490
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.0042c490
add esp, 8
push 0x44bfc9
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0042c490
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x434fd8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x43503a
call fcn.00434f88
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0042c520
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0042c520
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4350b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x44c5cc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x435192
cmp dword [0x44c5c8], 0
jne 0x435192
cmp dword [0x44c6c0], 0
je 0x43514c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00434e88
add esp, 8
mov ebx, eax
test eax, eax
jne 0x435132
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00434e88
add esp, 8
mov ebx, eax
test eax, eax
jne 0x435132
lea ebx, [ebp - 0x84]
jmp 0x435133
inc ebx
call fcn.00435074
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4351cd
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x44c5d0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0042c520
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x44c5d3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4351cd
cmp dword [0x44c5c8], 0
je 0x4351ac
cmp dword [0x44c5c8], 0xffffffff
je 0x4351cd
push esi
call dword [0x44c5c8]
pop ecx
mov eax, dword [0x44c5cc]
test eax, eax
je 0x4351cd
cmp dword [0x44c5cc], 0xffffffff
je 0x4351cd
cmp byte [eax], 0
je 0x4351cd
push esi
push eax
call fcn.00434fd8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x435c2c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
cmp edi, 1
jne 0x435cb2
mov eax, dword [0x44fadc]
inc dword [0x44fadc]
test eax, eax
jne 0x435cb2
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x44faa8], eax
mov edx, dword [ebp + 0x10]
mov dword [0x43b087], edx
mov ecx, dword [esi + 0x44]
push ecx
call fcn.0042e198
pop ecx
cmp dword [0x44c608], 0
je 0x435c9d
call fcn.00435ab0
mov ebx, eax
test eax, eax
je 0x435c9d
mov edx, dword [ebx]
cmp dword [ebx + edx*4 + 4], 0xffffffff
je 0x435c9d
mov ecx, dword [ebx]
inc dword [ebx]
mov dword [ebx + ecx*4 + 4], esi
jmp 0x435cb2
xor eax, eax
lea edx, [ebp - 8]
push 0
push edx
mov dword [0x44c608], eax
call fcn.00435ab8
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
push edi
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [esi + 0x18]
push edx
call fcn.00435dc0
mov ebx, eax
test edi, edi
jne 0x435d21
test edi, edi
jne 0x435cf2
dec dword [0x44fadc]
jne 0x435cf2
cmp dword [0x44faa8], 0
je 0x435cf2
mov eax, dword [0x44faa8]
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsA
xor edx, edx
mov dword [0x44faa8], edx
cmp dword [0x44fadc], 0
jne 0x435d21
cmp dword [0x44c608], 0
jne 0x435d21
cmp dword [0x44c5f8], 0
je 0x435d13
call dword [0x44c5f8]
push 1
lea ecx, [ebp - 8]
push ecx
call fcn.00435ab8
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x40bfb3
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 0x40c050
push ebx
push esi
call fcn.0040bf7c
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.0040bf10
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40bffd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c04f
push edi
push eax
call fcn.0040cbd0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40c01d
call fcn.0040aa71
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c04e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040bf10
add esp, 0x20
test eax, eax
jne 0x40c03c
push edi
call fcn.0040aa71
jmp 0x40c044
push ebx
call fcn.0040aa71
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 0x40d34d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4aee08
push 0x4aee00
push str.FlsAlloc
push 0x1f
call fcn.0040d20c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d381
push dword [ebp + 8]
mov ecx, esi
call dword [0x416174]
call esi
jmp 0x40d387
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d3cb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4aee18
push 0x4aee10
push str.FlsGetValue
push 0x21
call fcn.0040d20c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d402
push dword [ebp + 8]
mov ecx, esi
call dword [0x416174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d40a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4aee20
push 0x4aee18
push str.FlsSetValue
push 0x22
call fcn.0040d20c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d444
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x416174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100011fa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push htons
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.100081b0
add esp, 0x10
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
call fcn.10001279
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1000126e
push 0x60
push 0x4013398
push 6
call fcn.10007d05
add esp, 0xc
jmp 0x10001273
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10004690
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x100046d0
push 0
push 0x40133b7
push 6
call fcn.10007d05
add esp, 0xc
mov dword [ebp - 8], esp
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x100046ff
push 0x33
push 0x40133b7
push 6
call fcn.10007d05
add esp, 0xc
jmp 0x10004704
mov esp, ebp
pop ebp
ret 4

Function at 0x10008ad0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x10008aee
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x10008ae3
pop esi
ret

Function at 0x1000dcd0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
sub esp, 0x10
push esi
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov ecx, dword [esp + 0x1c]
mov esi, eax
xor eax, eax
push ecx
mov dword [esp + 8], eax
mov word [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call sub.WS2_32.dll_inet_addr
mov edx, dword [esp + 0x20]
mov dword [esp + 8], eax
push edx
call sub.WS2_32.dll_htons
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push esi
call sub.WS2_32.dll_connect
test eax, eax
jne 0x1000dd2f
mov eax, esi
pop esi
add esp, 0x10
ret
push esi
call sub.WS2_32.dll_closesocket
xor eax, eax
pop esi
add esp, 0x10
ret
Function at 0x1000de90
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1ac
lea eax, [esp + 0x1c]
push ebx
push esi
push edi
push eax
push 1
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x1000dfb3
mov ebx, dword [esp + 0x1c0]
test ebx, ebx
jl 0x1000dfb3
cmp ebx, 0xffff
jg 0x1000dfb3
mov edi, dword [esp + 0x1c4]
push edi
call fcn.1000f470
add esp, 4
cmp eax, 1
jne 0x1000df00
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x1000df16
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.1000f660
add esp, 8
test eax, eax
je 0x1000dfb3
mov esi, dword [esp + 0x1bc]
xor edx, edx
lea ecx, [esp + 0x14]
push ebx
lea eax, [esi + 0x34]
push ecx
push esi
mov dword [eax], edx
mov byte [eax + 4], dl
call fcn.1000dcd0
add esp, 0xc
mov dword [esi + 0xc], eax
test eax, eax
je 0x1000dfb3
push eax
call fcn.1000e660
push esi
lea edx, [esp + 0x18]
push 0x1000dd40
push edx
mov dword [esi + 0x10], 0
call fcn.1000f7e0
mov eax, dword [esp + 0x20]
add esp, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x1000df9c
push esi
lea ecx, [esp + 0x10]
push 0x1000ddb0
push ecx
call fcn.1000f7e0
mov edx, dword [esp + 0x18]
push esi
lea eax, [esp + 0x1c]
push 0x1000de20
push eax
mov dword [esi + 0x18], edx
call fcn.1000f7e0
mov ecx, dword [esp + 0x24]
add esp, 0x18
mov dword [esi + 0x1c], ecx
call fcn.1000dc00
mov dword [esi + 8], eax
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1ac
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1ac
ret
Function at 0x1000e660
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0xc], 1
call sub.WS2_32.dll_ioctlsocket
xor edx, edx
test eax, eax
setge dl
mov eax, edx
pop ecx
ret