joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a3b5
Capabilities:
Parse credit card information

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x1000a50c
mov edx, 0x10000000
cmp eax, 0x7c
je 0x1000a50c
cmp eax, 0x29
jne 0x1000a3f2
cmp dword [esi + 0x10], 0
jne 0x1000a50c
cmp eax, eax
jne 0x1000a3f2
test dword [esi + 0x50], edx
je 0x1000a512
cmp eax, 0x2e
jne 0x1000a40d
push 5
lea ecx, [esi + 0x24]
call fcn.1000c04c
mov ecx, esi
call fcn.1000a38c
jmp 0x1000a4f6
cmp eax, 0x5c
jne 0x1000a462
mov ecx, esi
call fcn.1000a38c
test byte [esi + 0x50], 0x80
je 0x1000a456
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x1000a43e
push 4
lea ecx, [esi + 0x24]
call fcn.1000c04c
mov ecx, esi
call fcn.1000a38c
jmp 0x1000a4fd
cmp eax, 0x42
jne 0x1000a456
push 4
lea ecx, [esi + 0x24]
call fcn.1000c04c
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x1000a432
mov ecx, esi
call fcn.1000c04c
jmp 0x1000a4f6
cmp eax, 0x5b
jne 0x1000a482
mov ecx, esi
call fcn.1000a38c
mov ecx, esi
call fcn.1000b140
cmp dword [esi + 0x4c], 0x5d
je 0x1000a401
push 4
jmp 0x1000a514
cmp eax, 0x28
jne 0x1000a49f
mov ecx, esi
call fcn.1000a38c
mov ecx, esi
call fcn.1000b279
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x1000a512
jmp 0x1000a4eb
cmp eax, 0x5e
jne 0x1000a4a8
push 2
jmp 0x1000a42a
cmp eax, 0x24
jne 0x1000a4b4
push 3
jmp 0x1000a42a
cmp eax, 0x2a
je 0x1000a508
cmp eax, 0x2b
je 0x1000a508
cmp eax, 0x3f
je 0x1000a508
cmp eax, 0x7b
je 0x1000a508
cmp eax, 0x7d
jne 0x1000a4d2
test dword [esi + 0x50], edx
je 0x1000a504
cmp eax, 0x5d
jne 0x1000a4dc
test dword [esi + 0x50], edx
je 0x1000a47b
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.1000c04c
mov bl, 1
mov ecx, esi
call fcn.1000a38c
test bl, bl
je 0x1000a4fd
mov ecx, esi
call fcn.1000c04c
mov cl, 1
jmp 0x1000a3bc
push 6
jmp 0x1000a514
push 0xa
jmp 0x1000a514
pop esi
mov al, cl
pop ebx
pop ecx
ret
push 5
call fcn.1000c04c
int3
Function at 0x1000c04c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1000c05b
pop dword [ebp - 0x24]
mov eax, 0x624ebede
add eax, 0xadb2017d
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x1c5e5490
add dword [ebp - 0x34], 0x31f3f0bb
mov dword [ebp - 0x30], 0x79e2a6a8
sub dword [ebp - 0x30], 0x47af5a63
mov dword [ebp - 0x2c], 0x64ab3fb9
add dword [ebp - 0x2c], 0xe7a10475
mov dword [ebp - 0x28], 0x765031e7
add dword [ebp - 0x28], 0x89afce19
lea eax, [ebp - 0x34]
push eax
mov eax, 0xb31c16b4
sub eax, 0xa31a9600
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x244667fe
add dword [ebp - 0x34], 0x502c0158
mov dword [ebp - 0x30], 0xaa562532
add dword [ebp - 0x30], 0x97163c43
mov dword [ebp - 0x2c], 0x34557c2
add dword [ebp - 0x2c], 0x602a14aa
mov dword [ebp - 0x28], 0x4fd4241
add dword [ebp - 0x28], 0xfb02bdbf
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3b649
push 0
call eax
mov ecx, 0xc3f5114e
sub ecx, 0xc3f4c974
xor edx, edx
add edx, eax
mov ebx, 0x9857f20c
add ebx, 0x77aa7ff4
add ebx, dword [ebp - 0x24]
mov esi, 0x8ce71501
sub esi, 0x5797d01c
mov dword [ebp - 0x1c], 0x57c37bb
mov edi, dword [ebx]
mov dword [ebp - 0x20], 0x49f8f17f
add edi, esi
xor dword [ebp - 4], eax
mov dword [edx], edi
sub dword [ebp - 0x18], ecx
add edx, 0x4cc6a7c9
sub edx, 0x4cc6a7c5
add ebx, 0xecd423b8
add ebx, 0x132bdc4c
loop 0x1000c17a
add eax, 0x9fc9b5e0
add eax, 0x60375c5b
mov ebx, eax
add eax, 0x7d82852b
sub eax, 0x7d828526
mov ecx, 0x10000000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x1000d464
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push esi
push edi
mov edi, dword [ebp + 8]
sub ecx, edi
sar ecx, 1
push 0
pop esi
add ecx, ecx
je 0x1000d490
movzx eax, byte [esi + edi]
xor eax, edx
imul edx, eax, 0x1000193
inc esi
cmp esi, ecx
jb 0x1000d47f
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x277fce3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp fcn.0279ab0b
jmp 0x277fca3

Function at 0x279992f
Capabilities:
Encode data using xor

Disassembly:
jmp 0x2799977
push dword [esp + 3]
lea esp, [esp + 8]
jmp 0x277ffde

Function at 0x2799945
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push bp
lea esp, [esp + 2]
call fcn.0279992f
xor al, 0x96
add al, 0x63
sahf
sbb dword [edi + 0x7b18392e], eax
push edx

Function at 0x2799fdb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov cx, dx
mov cx, word [esp]
not ch
mov ecx, dword [esp]
mov ecx, dword [esp + 0xe]
jmp 0x2799fc5
mov cl, ah
mov cx, bx
bswap ecx
lea ecx, [esi + edi]
mov si, word [esp]
mov esi, dword [esp + 8]
jmp 0x2799f9b
lea esp, [esp + 0x18]
jmp fcn.0277fce3
lea esi, [ecx + ebx]
mov ebx, dword [esp + 4]
jmp 0x2799fb1
Function at 0x27c54df
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call 0x27c556c
lea eax, [edx + edi]
jmp 0x27c54e8
mov word [esp + 1], di
push dword [esp + 1]
pop eax
mov eax, dword [esp + 0x28]
lea esp, [esp + 0x2c]
jmp 0x279aa9e
Function at 0x10001360
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push esi
push edi
push str.MutexThunder
push 1
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
jne 0x1000137c
pop edi
pop esi
ret
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001398
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [esi + 4]
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x100013b7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
mov eax, esi
pop edi
pop esi
ret

Function at 0x10001440
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x128
push ebp
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
test ebp, ebp
je 0x100014d1
push ebx
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebp
mov dword [esp + 0x18], 0x128
xor edi, edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100014c7
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [str.TDUpdate.exe]
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x100014b3
mov eax, dword [esp + 0x18]
push eax
push 0
push 1
call ebx
mov esi, eax
test esi, esi
je 0x100014ab
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, 1
jge 0x100014c7
lea ecx, [esp + 0x10]
push ecx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10001478
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x128
ret

Function at 0x100015d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xd0
lea eax, [esp]
push esi
push eax
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0xe0]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x1c], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x10001619
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xe0]
call sub.MFC42.DLL_CString::operator
mov eax, esi
pop esi
add esp, 0xd0
ret 8

Function at 0x10001630
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx + 4]
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8
Function at 0x10001700
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x1000332b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.10001660
mov eax, dword [esp + 0x12c]
mov ecx, dword [ebx]
push 0x2001f
push eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x130], 0
call fcn.100016c0
mov esi, eax
test esi, esi
jne 0x100017d7
lea edx, [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edx
mov edx, dword [esp + 0x10]
push eax
push eax
push eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x2c]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x30], 0x100
call edi
test eax, eax
jne 0x100017bd
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
call fcn.10001700
mov esi, eax
test esi, esi
jne 0x100017d7
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea eax, [esp + 0x2c]
push edx
push eax
push esi
push ecx
mov dword [esp + 0x30], 0x100
call edi
test eax, eax
je 0x10001783
lea ecx, [esp + 0xc]
call fcn.100016a0
mov edx, dword [esp + 0x12c]
mov ecx, ebx
push edx
call fcn.10001680
mov esi, eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x124], 0xffffffff
call fcn.10001670
mov ecx, dword [esp + 0x11c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret 4
Function at 0x10002110
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x54
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
lea ecx, [esp + 8]
mov dword [esp + 0xc], eax
push ecx
mov dword [esp + 0x14], eax
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x30], eax
push eax
mov eax, dword [esp + 0x80]
push eax
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
pop edi
pop esi
add esp, 0x54
ret 4

Function at 0x10002220
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.100022f0
test eax, eax
je 0x100022d5
mov edi, dword [esp + 0x110]
lea ecx, [esp + 4]
push ecx
push 0
test edi, edi
push 0
je 0x10002261
push 2
jmp 0x10002263
push 7
push 0
call eax
xor edx, edx
test eax, eax
setge dl
mov eax, edx
test eax, eax
je 0x100022d5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 8]
push 0x100059a4
push eax
call esi
test edi, edi
je 0x1000229f
lea ecx, [esp + 8]
push edi
push ecx
call esi
lea edx, [esp + 8]
push 0x100059a4
push edx
call esi
mov eax, dword [esp + 0x110]
lea ecx, [esp + 8]
push eax
push ecx
call esi
lea edx, [esp + 8]
push str..lnk
push edx
call esi
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
mov eax, 1
pop edi
add esp, 0x104
ret 8
mov eax, 1
pop edi
add esp, 0x104
ret 8

Function at 0x10002540
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0xffffffffffffffff
push 0x100033a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push esi
push edi
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], 0
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov edx, eax
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea eax, [esp + 8]
mov dword [esp + 8], ecx
push eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 4
Function at 0x10002610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100033c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [esp + 0x28]
push 0x10005e28
mov ecx, edi
xor esi, esi
call sub.MFC42.DLL_CString::operator
mov ebx, dword [esp + 0x2c]
push 0x10005ba0
mov ecx, ebx
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0xc]
call fcn.100014e0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], esi
cmp eax, 1
jne 0x1000266a
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallF7C00CFF_2261_4230_89E4_33BB7A4DBD06
jmp 0x1000268c
cmp eax, 2
jne 0x10002676
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallED33A224_A2DD_4C40_820D_AAEBA7F81CC6
jmp 0x1000268c
cmp eax, 3
jne 0x10002682
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallA3C99FA2_3DC9_4256_A792_9C530952DBB7
jmp 0x1000268c
cmp eax, 4
jne 0x100026c5
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall39DECFC5_A203_42EB_9EB4_1727A83930AE
push 0x80000002
lea ecx, [esp + 0x14]
call fcn.10001590
cmp eax, esi
jne 0x100026c5
push edi
push str.UninstallString
lea ecx, [esp + 0x14]
call fcn.100015d0
test eax, eax
jne 0x100026b6
mov esi, 1
push ebx
push str.DisplayVersion
lea ecx, [esp + 0x14]
call fcn.100015d0
lea ecx, [esp + 0xc]
call fcn.10001570
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.10001520
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc

Function at 0x10002b60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x10003468
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push esi
push edi
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], 0
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov edx, eax
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea eax, [esp + 8]
mov dword [esp + 8], ecx
push eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret
Function at 0x403560
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x406c70
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov ecx, edi
push 0
call fcn.004094e4
mov dword [edi + 4], 0
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
mov byte [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov word [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov word [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov byte [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov byte [edi + 0x30], 0
mov dword [ebp - 0x20], edi
test esi, esi
je 0x40360f
mov dword [ebp - 0x10], 0
push esi
push edi
call fcn.004097c5
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], 0
push str.bad_locale_name
call fcn.00409497
add esp, 4
nop word cs:[eax + eax]
push ebp
sub esp, 8
add ebp, 0xc
mov eax, dword [ebp - 0x20]
mov esi, eax
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x40364c
push eax
call fcn.0040ddf8
add esp, 4
mov dword [esi + 0x2c], 0
mov eax, esi
mov eax, dword [esi + 0x24]
test eax, eax
je 0x403665
push eax
call fcn.0040ddf8
add esp, 4
mov dword [esi + 0x24], 0
mov eax, esi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40367e
push eax
call fcn.0040ddf8
add esp, 4
mov dword [esi + 0x1c], 0
mov eax, esi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x403697
push eax
call fcn.0040ddf8
add esp, 4
mov dword [esi + 0x14], 0
mov eax, esi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4036b0
push eax
call fcn.0040ddf8
add esp, 4
mov dword [esi + 0xc], 0
mov eax, esi
mov eax, dword [esi + 4]
test eax, eax
je 0x4036c9
push eax
call fcn.0040ddf8
add esp, 4
mov ecx, esi
mov dword [esi + 4], 0
call fcn.0040953c
add esp, 8
pop ebp
ret

Function at 0x40773e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40777d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40777d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40777d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40777d
cmp dword [ecx + 0x74], 0xe
jbe 0x40777d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408fab
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408fcc
jl 0x408fc3
test edi, edi
jne 0x408fcc
xor eax, eax
xor edx, edx
jmp 0x40908d
cmp dword [ebx + 0x38], 0
je 0x408fe1
push eax
push edi
push dword [ebp + 8]
call fcn.00409093
jmp 0x40908d
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x409028
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x409028
cmp eax, edi
jb 0x409002
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00409ff0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40902e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x409082
mov ecx, ebx
call fcn.00408721
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40906d
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004130b2
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x409082
jmp 0x409040
test edx, edx
je 0x409082
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004130b2
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x415c8c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4730c0
push 0x4730b8
push str.FlsAlloc
push 0x1f
call fcn.00415af7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415cc0
push dword [ebp + 8]
mov ecx, esi
call dword [0x426164]
call esi
jmp 0x415cc6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415d0a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4730d0
push 0x4730c8
push str.FlsGetValue
push 0x21
call fcn.00415af7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415d41
push dword [ebp + 8]
mov ecx, esi
call dword [0x426164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x415d49
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4730d8
push 0x4730d0
push str.FlsSetValue
push 0x22
call fcn.00415af7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415d83
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x426164]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x419abe
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 0x419b5b
push ebx
push esi
call fcn.00419a87
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.00419a1b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x419b08
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419b5a
push edi
push eax
call fcn.004175bf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x419b28
call fcn.0041660b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419b59
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00419a1b
add esp, 0x20
test eax, eax
jne 0x419b47
push edi
call fcn.0041660b
jmp 0x419b4f
push ebx
call fcn.0041660b
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 0x41c7af
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00416320
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41c81e
cmp esi, dword [ebp - 4]
je 0x41c819
cmp dword [ebp + 0xc], 0
je 0x41c819
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41c7f6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041c301
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41c820
xor eax, eax
inc eax
jmp 0x41c820
xor eax, eax
pop edi
pop esi
leave
ret