joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b104
Capabilities:
Read file via mapping

Disassembly:
push edi
push esi
push eax
call sub.KERNEL32.DLL_GetCurrentProcessId
mov ecx, eax
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x4684da], cl
mov ecx, eax
shr ecx, 4
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x4684d9], cl
mov ecx, eax
shr ecx, 8
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x4684d8], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x4684d7], cl
mov ecx, eax
shr ecx, 0x10
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x4684d6], cl
mov ecx, eax
shr ecx, 0x14
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x4684d5], cl
mov ecx, eax
shr ecx, 0x18
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x4684d4], cl
shr eax, 0x1c
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [0x4684d3], al
sub esp, 4
push str.LocalFastMM_PID________
push 0
push 4
call sub.KERNEL32.DLL_OpenFileMappingA
add esp, 4
mov esi, eax
test esi, esi
je 0x44b1e7
sub esp, 0xc
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.DLL_MapViewOfFile
add esp, 0xc
mov edi, dword [eax]
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
push esi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
jmp 0x44b1e9
xor edi, edi
mov eax, edi
add esp, 4
pop esi
pop edi
ret

Function at 0x44b1f4
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0xc
xor eax, eax
cmp dword [0x467d70], 0x44baca
jne 0x44b258
cmp dword [0x467d74], fcn.0044be4e
jne 0x44b258
cmp dword [0x467d78], fcn.0044c046
jne 0x44b258
cmp dword [0x467d7c], fcn.0044c360
jne 0x44b258
cmp dword [0x467d80], 0x44a194
jne 0x44b258
cmp dword [0x467d84], 0x44a1a4
jne 0x44b258
mov ecx, dword [0x47fcac]
test ecx, ecx
jne 0x44b258
call fcn.0044b104
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x44b25c
add esp, 0xc
ret
sub esp, 8
push str.LocalFastMM_PID________
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.DLL_CreateFileMappingA
add esp, 8
mov dword [0x47fcac], eax
sub esp, 0xc
push 0
push 0
push 0
push 2
push eax
call sub.KERNEL32.DLL_MapViewOfFile
add esp, 0xc
mov dword [eax], fcn.0044baca
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
add esp, 0xc
mov eax, 1
add esp, 0xc
ret
Function at 0x44d398
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebx, dword [esp + 0x44]
call fcn.0044e35c
test bh, 0xc0
jne 0x44d3bb
mov eax, dword [0x468ba4]
mov ecx, 0xc000
and ecx, dword [eax]
or ebx, ecx
mov eax, ebx
and eax, 0x700
add eax, 0xffffff00
mov ecx, eax
shr ecx, 8
mov esi, 3
cmp ecx, 6
ja 0x44d3df
sar eax, 6
mov esi, dword [eax + 0x468538]
mov edi, dword [esp + 0x40]
test bh, 1
je 0x44d408
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], eax
mov al, byte [0x468558]
and al, byte [esp + 0x48]
mov eax, 0x80
mov ecx, 1
cmovs ecx, eax
jmp 0x44d41b
mov dword [esp], edi
call sub.KERNEL32.DLL_GetFileAttributesW
sub esp, 4
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ebx
and al, 3
je 0x44d434
cmp al, 2
je 0x44d43b
cmp al, 1
jne 0x44d533
mov eax, 0x40000000
jmp 0x44d440
mov eax, 0x80000000
jmp 0x44d440
mov eax, 0xc0000000
mov edx, ebx
and edx, 0x70
add edx, 0xfffffff0
shr edx, 4
cmp edx, 3
mov ebp, 3
cmovb ebp, edx
xor edx, edx
cmp eax, 0x80000000
sete dl
test bl, 4
cmove edx, ebp
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], 0
mov ebp, ebx
shr ebp, 7
not ebp
and ebp, 1
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0x18], 0
call sub.KERNEL32.DLL_CreateFileW
sub esp, 0x1c
mov esi, eax
cmp esi, 0xffffffff
je 0x44d510
mov edi, ebx
shr edi, 1
not edi
and edi, 0x4000
or edi, ebx
mov dword [esp], esi
call fcn.0044cf5c
mov ecx, edi
or ecx, 0x2000
test eax, eax
cmove ecx, edi
and ecx, 0xfffff8ff
mov dword [esp], esi
mov dword [esp + 4], ecx
call fcn.0044e51c
mov edi, eax
cmp edi, 0xffffffff
jne 0x44d541
mov dword [esp], 4
call fcn.0044e8f8
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov edi, 0xffffffff
jmp 0x44d541
call sub.KERNEL32.DLL_GetLastError
movzx eax, ax
test bh, 1
mov ecx, 0x50
mov edx, 2
cmovne edx, ecx
cmp eax, 0x6e
cmovne edx, eax
mov dword [esp], edx
jmp 0x44d53a
mov dword [esp], 1
call fcn.0044e8f8
mov edi, eax
call fcn.0044e3ac
mov eax, edi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x44d8e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0x468ad4], eax
jbe 0x44d91d
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0x481f54]
call sub.KERNEL32.DLL_ReadFile
add esp, 0xc
cmp eax, 1
jne 0x44d924
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
jmp 0x44d93a
call sub.KERNEL32.DLL_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
jne 0x44d936
add esp, 0xc
ret
sub esp, 0xc
push ecx
call fcn.0044e8f8
add esp, 0x10
add esp, 0xc
ret
Function at 0x44d958
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0x468ad4], eax
jbe 0x44d995
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0x481f54]
call sub.KERNEL32.DLL_WriteFile
add esp, 0xc
cmp eax, 1
jne 0x44d9a6
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
call fcn.0044e8f8
add esp, 0x10
add esp, 0xc
ret
call fcn.0044e998
add esp, 0xc
ret

Function at 0x44f918
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_DeleteFileA
sub esp, 4
cmp eax, 1
jne 0x44f935
xor eax, eax
add esp, 0xc
ret
add esp, 0xc
jmp fcn.0044e998
Function at 0x4538b4
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x21c
mov dword [esp + 0x18], edx
mov esi, ecx
mov eax, dword [esi + 4]
lea ebp, [esp + 0x1c]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 0xc], pe_nt_image_headers32
mov dword [esp + 4], 0x1001
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.0044ca8c
mov word [esp + eax + 0x1c], 0x5f
mov edi, dword [esi + 4]
mov dword [esp], ebp
call fcn.0044ca8c
lea ecx, [esp + eax + 0x1c]
mov edx, pe_nt_image_headers32
sub edx, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], edi
mov dword [esp + 4], 0x1002
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.0044ca8c
mov word [esp + eax + 0x1c], 0x2e
mov edi, dword [esi]
mov dword [esp], ebp
call fcn.0044ca8c
lea eax, [esp + eax + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 8], 0xa
call fcn.00456e2c
mov edi, dword [esi + 0x24]
test edi, edi
je 0x4539a8
mov dword [esp], edi
call fcn.0044ca8c
mov ebx, eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.0044ca8c
mov ecx, ebp
mov ebp, eax
mov dword [esp], ecx
call fcn.0044ca8c
add ebp, ebx
lea eax, [eax + ebp + 3]
lea ebp, [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00449de0
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
jne 0x4539fd
jmp 0x453a45
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.0044ca8c
mov ebx, eax
mov edi, ebp
mov dword [esp], ebp
call fcn.0044ca8c
mov ebp, eax
lea eax, [ebx + ebp + 3]
mov dword [esp], eax
call fcn.00449dc8
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
je 0x453a45
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.0044ca8c
lea eax, [ebp + eax + 3]
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.0044c927
mov ebp, edi
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0044c940
mov edi, dword [esi + 0x24]
mov dword [esp], edi
call fcn.0044ca8c
mov word [edi + eax], 0x3d
mov eax, dword [esi + 0x24]
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.0044c940
mov esi, dword [esi + 0x24]
mov dword [esp], esi
call fcn.0044ca8c
mov word [esi + eax], 0xa
mov eax, 1
jmp 0x453a47
xor eax, eax
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4554a0
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
push 0
push dword [edi + 4]
push 0xe
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00449dc8
add esp, 0x10
mov dword [edi + 4], eax
push esi
push eax
push 0xe
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi]
push 0xf
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00449dc8
add esp, 0x10
mov dword [edi], eax
test edi, edi
je 0x455513
push esi
push eax
push 0xf
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
jmp 0x455522
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
xor ecx, ecx
and ecx, ebx
mov dword [esp + 8], ecx
push 0
push dword [edi + 8]
push 0x10
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00449dc8
add esp, 0x10
mov dword [edi + 8], eax
push esi
push eax
push 0x10
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi + 0xc]
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00449dc8
add esp, 0x10
mov dword [edi + 0xc], eax
push esi
push eax
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
and ecx, ebx
mov ebx, ebp
mov ebp, ecx
push 0
push dword [edi + 0x10]
push 0x51
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00449dc8
add esp, 0x10
mov dword [edi + 0x10], eax
push esi
push eax
push 0x51
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
and ebx, ebp
and ebx, dword [esp + 8]
sub esp, 0xc
push 4
call fcn.00449dc8
add esp, 0x10
mov esi, eax
test esi, esi
je 0x45560c
push 4
push esi
push 0x11
push dword [esp + 0x2c]
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x45561b
push esi
call fcn.00456634
add esp, 0x10
mov word [edi + 0x14], ax
sub esp, 0xc
push esi
call fcn.00449dd8
add esp, 0x10
mov eax, 1
jmp 0x455626
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x455624
push esi
call fcn.00449dd8
add esp, 0x10
xor eax, eax
and ebx, eax
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x458ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [esp + 0x4c]
call sub.KERNEL32.DLL_CreateFileA
add esp, 4
mov edi, eax
test edi, edi
je 0x458f86
sub esp, 0xc
lea eax, [esp + 0x14]
push eax
call sub.KERNEL32.DLL_GetLocalTime
add esp, 0xc
movzx eax, word [esp + 0xa]
mov dword [esp + 0x18], eax
movzx ecx, word [esp + 0xe]
movzx edx, word [esp + 8]
movzx ebp, word [esp + 0x10]
movzx eax, word [esp + 0x12]
movzx esi, word [esp + 0x14]
movzx ebx, word [esp + 0x16]
sub esp, 0xc
push ebx
push esi
push eax
push ebp
push edx
push ecx
push dword [esp + 0x3c]
push str._02d__02d__04d__02d:_02d:_02d._03d
push 0x482250
call sub.USER32.DLL_wsprintfA
add esp, 0x24
push 0x482250
call fcn.0044ca8c
add esp, 4
push 0
lea ebx, [esp + 0x18]
push ebx
push eax
push 0x482250
push edi
call sub.KERNEL32.DLL_WriteFile
mov esi, dword [esp + 0x40]
push esi
call fcn.0044ca8c
add esp, 4
push 0
push ebx
push eax
push esi
push edi
call sub.KERNEL32.DLL_WriteFile
push edi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x458fb8
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x90
mov edi, dword [esp + 0xa0]
mov eax, dword [0x482270]
test eax, eax
mov ecx, dword [0x48226c]
jne 0x45907d
test ecx, ecx
jne 0x45907d
cmp dword [0x469fcc], 0
je 0x4590b3
sub esp, 4
lea esi, [esp + 0x14]
push 0x80
push esi
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
sub esp, 4
push 0x5c
push esi
call fcn.00458d40
add esp, 0x10
test eax, eax
jne 0x459028
sub esp, 8
push 0x3a
push esi
call fcn.00458d40
add esp, 0x10
test eax, eax
je 0x45902b
inc eax
mov esi, eax
mov dword [esp + 0xc], 0
call sub.KERNEL32.DLL_GetVersion
mov ecx, 0x12010
test eax, eax
jns 0x45906e
call fcn.0045ff0c
sub esp, 4
lea ecx, [esp + 0x10]
push ecx
push 0x459148
push eax
call sub.USER32.DLL_EnumThreadWindows
add esp, 4
cmp dword [esp + 0xc], 0
mov eax, 0x11010
mov ecx, 0x12010
cmove ecx, eax
push ecx
push esi
push edi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x459100
cmp ecx, 0xffffffff
je 0x459100
test ecx, ecx
je 0x459094
sub esp, 0xc
push edi
call ecx
add esp, 0x10
mov eax, dword [0x482270]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x459100
cmp byte [eax], 0
je 0x459100
sub esp, 8
push edi
push eax
call fcn.00458ec0
add esp, 0xa0
jmp 0x459106
sub esp, 0xc
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
add esp, 0xc
mov esi, eax
sub esp, 0xc
lea ebx, [esp + 0x1c]
push 0
push ebx
push 2
push 0x469e24
push esi
call sub.KERNEL32.DLL_WriteFile
push edi
call fcn.0044ca8c
add esp, 4
push 0
push ebx
push eax
push edi
push esi
call sub.KERNEL32.DLL_WriteFile
push 0
push ebx
push 2
push 0x469e24
push esi
call sub.KERNEL32.DLL_WriteFile
add esp, 0xc
add esp, 0x90
pop esi
pop edi
pop ebx
ret
Function at 0x459f88
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x48a294]
test eax, eax
je 0x459fbd
mov ecx, dword [eax]
test ecx, ecx
je 0x45a020
add eax, 4
xor edi, edi
nop
cmp byte [ecx], 1
sbb edi, 0
inc edi
mov ecx, dword [eax]
add eax, 4
test ecx, ecx
jne 0x459fa8
jmp 0x45a04c
mov esi, dword [0x48a2cc]
test esi, esi
jne 0x459fea
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov esi, eax
mov dword [0x48a2cc], esi
test esi, esi
jne 0x459fea
mov dword [esp], str.GetEnvironmentStrings_failed
call fcn.00459128
mov esi, dword [0x48a2cc]
mov dword [esp], esi
call fcn.0044ca8c
test eax, eax
je 0x45a024
xor ebx, ebx
xor edi, edi
mov ebp, esi
nop word cs:[eax + eax]
lea ebx, [eax + ebx + 1]
inc edi
lea ebp, [ebp + eax + 1]
mov dword [esp], ebp
call fcn.0044ca8c
test eax, eax
jne 0x45a008
inc ebx
jmp 0x45a02b
xor edi, edi
jmp 0x45a04c
mov ebx, 1
xor edi, edi
mov dword [esp], ebx
call fcn.00449dc8
mov dword [0x48a290], eax
test eax, eax
je 0x45a0a5
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0044c75c
lea eax, [edi + 4]
mov dword [0x48a298], eax
add edi, 5
mov dword [esp], edi
mov dword [esp + 4], 4
call fcn.00449dac
mov esi, eax
test esi, esi
je 0x45a0a5
mov edi, dword [0x48a294]
test edi, edi
je 0x45a0a9
mov edx, dword [edi]
test edx, edx
je 0x45a0e2
lea eax, [edi + 4]
xor ecx, ecx
nop word [eax + eax]
cmp byte [edx], 0
je 0x45a098
mov edx, dword [eax - 4]
mov dword [esi + ecx*4], edx
jmp 0x45a099
dec ecx
inc ecx
mov edx, dword [eax]
add eax, 4
test edx, edx
jne 0x45a088
jmp 0x45a0de
xor eax, eax
jmp 0x45a0f5
mov ebx, dword [0x48a290]
mov dword [esp], ebx
call fcn.0044ca8c
test eax, eax
je 0x45a0ea
mov ebp, esi
nop word cs:[eax + eax]
mov dword [ebp], ebx
lea ebx, [ebx + eax + 1]
mov dword [esp], ebx
call fcn.0044ca8c
add ebp, 4
test eax, eax
jne 0x45a0c8
test edi, edi
je 0x45a0ea
mov dword [esp], edi
call fcn.00449dd8
mov dword [0x48a294], esi
mov eax, 1
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x45a7c0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov dword [esp + 4], 1
mov dword [esp + 8], esi
cmp ebx, 1
jne 0x45a821
mov eax, dword [0x48a310]
lea ecx, [eax + 1]
mov dword [0x48a310], ecx
test eax, eax
jne 0x45a821
call sub.KERNEL32.DLL_GetEnvironmentStringsW
mov dword [0x48a2d0], eax
sub esp, 0xc
push dword [esi + 0x44]
call fcn.0044dcb4
add esp, 8
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0045a598
add esp, 0x10
push ebp
push ebx
push edi
push dword [esi + 0x18]
call fcn.0045b10c
mov esi, eax
test ebx, ebx
jne 0x45a874
dec dword [0x48a310]
jne 0x45a874
sub esp, 0xc
push edi
call fcn.00459378
add esp, 8
lea eax, [esp + 0xc]
push 1
push eax
call fcn.0045a598
add esp, 0x10
mov eax, dword [0x48a2d0]
test eax, eax
je 0x45a874
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsW
add esp, 0xc
mov dword [0x48a2d0], 0
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x45ada4
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, edx
mov ebx, ecx
cmp edi, 0xf
jg 0x45adcd
test edi, edi
je 0x45adcd
call fcn.00458f90
mov dword [eax], 0x13
mov eax, 0xffffffff
jmp 0x45ae53
call fcn.0045aa70
mov esi, eax
test esi, esi
je 0x45ae21
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov dword [esi + 4], ebp
mov dword [esi + 0x14], ebx
mov dword [esi + 0x58], eax
sub esp, 8
lea eax, [esp + 0x10]
push eax
push ecx
push esi
push 0x45af44
push edi
push edx
call sub.KERNEL32.DLL_CreateThread
add esp, 8
test eax, eax
je 0x45ae33
mov ecx, dword [esp + 0x2c]
mov dword [esi + 8], eax
test ecx, ecx
je 0x45ae53
mov edx, dword [esp + 8]
mov dword [ecx], edx
jmp 0x45ae53
call fcn.00458f90
mov dword [eax], 8
mov eax, 0xffffffff
jmp 0x45ae53
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x718
jne 0x45ae4e
sub esp, 0xc
push 0x59
call fcn.0044e8f8
add esp, 0x10
jmp 0x45ae53
call fcn.0044e998
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x45af6c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
push esi
sub esp, 0x64
mov esi, dword [esp + 0x70]
mov dword [esp], 0x48a320
call sub.KERNEL32.DLL_EnterCriticalSection
sub esp, 4
mov eax, dword [0x48d7d0]
cmp eax, 0x232
jl 0x45afd6
mov eax, dword [esp + 0x74]
mov byte [esp + 0x24], 0
mov dword [esp + 0x20], 0x20726f72
mov dword [esp + 0x1c], 0x72652065
mov dword [esp + 0x18], 0x726f6870
mov dword [esp + 0x14], 0x616d6553
mov dword [esp + 4], eax
lea edi, [esp + 0x14]
mov dword [esp], edi
call fcn.0044c940
mov dword [esp], edi
call fcn.00459128
mov eax, dword [0x48d7d0]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x48a320]
mov dword [esp], eax
call sub.KERNEL32.DLL_InitializeCriticalSection
sub esp, 4
mov eax, dword [0x48d7d0]
lea ecx, [eax + 1]
mov dword [0x48d7d0], ecx
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x48a320]
mov dword [esi], eax
mov dword [esp], 0x48a320
call sub.KERNEL32.DLL_LeaveCriticalSection
add esp, 0x60
pop esi
pop edi
ret

Function at 0x45b01c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
sub esp, 0x58
mov eax, dword [esp + 0x60]
mov byte [esp + 0x18], 0
mov dword [esp + 0x14], 0x20726f72
mov dword [esp + 0x10], 0x72652065
mov dword [esp + 0xc], 0x726f6870
mov dword [esp + 8], 0x616d6553
mov dword [esp + 4], eax
lea esi, [esp + 8]
mov dword [esp], esi
call fcn.0044c940
mov dword [esp], esi
call fcn.00459128
add esp, 0x58
pop esi
ret

Function at 0x45f558
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x48dc00]
mov dword [esp], eax
call fcn.00460092
sub esp, 4
mov esi, eax
test esi, esi
je 0x45f5bf
xor edi, edi
nop
cmp edi, 3
ja 0x45f5bf
inc edi
xor ebx, ebx
xor eax, eax
nop word [eax + eax]
cmp byte [ebx*8 + 0x48dc04], 0
je 0x45f5b5
mov ecx, dword [ebx*8 + 0x48dc08]
test ecx, ecx
je 0x45f5b5
mov edx, dword [esi + ebx*4]
test edx, edx
je 0x45f5b5
mov dword [esi + ebx*4], 0
mov dword [esp], edx
call ecx
mov eax, 1
inc ebx
cmp ebx, 0x32
jne 0x45f588
test eax, eax
jne 0x45f578
add esp, 0x10
pop esi
pop edi
pop ebx
ret
Function at 0x401200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401219
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401254
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401250
lea ebx, [ebx]
cmp esi, eax
jae 0x401254
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401240
cmp esi, eax
jb 0x40125a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4012b0
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword fs:[0x30]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0xc]
mov ebp, dword [esp + 0x18]
mov edi, ebx
nop
mov ecx, dword [edi + 0x30]
mov esi, dword [0x43808c]
push ecx
call fcn.00415357
mov cl, byte [eax]
add esp, 4
test cl, cl
mov edx, esi
je 0x401306
lea ebx, [ebx]
mov esi, edx
shl esi, 5
sub esi, edx
movzx edx, cl
mov cl, byte [eax + 1]
add eax, 1
add edx, esi
test cl, cl
jne 0x4012f0
cmp edx, ebp
je 0x401318
mov edi, dword [edi]
cmp edi, ebx
jne 0x4012d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40fbec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40fc2f
call fcn.004109c9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40fc2f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40fc4a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040f7a3
test ebx, ebx
mov esi, eax
je 0x40fc48
test edi, edi
je 0x40fc48
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x411f00
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 0x411f2e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411f4c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00411e6a
jmp 0x411f4c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x411f4c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00411e6a
test edi, edi
mov eax, edi
jne 0x411f36
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x43bea8]
test ecx, ecx
je 0x41200f
jmp 0x411eff
ret 8

Function at 0x414d9d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x438c04]
jne 0x414da7
repz ret
jmp fcn.00419b0c