joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a890
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x204
mov eax, dword [0x4b8670]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push ebp
mov ebp, dword [esp + 0x210]
push esi
push edi
xor ecx, ecx
lea edx, [esp + 0x10]
xor eax, eax
mov ah, cl
mov esi, 8
movzx eax, ax
test eax, 0x8000
je 0x41a8d4
add eax, eax
xor eax, 0x1021
movzx eax, ax
jmp 0x41a8d6
add eax, eax
sub esi, 1
jne 0x41a8c1
mov word [edx], ax
add ecx, 1
add edx, 2
cmp cx, 0xff
jbe 0x41a8b5
movzx edi, word [ebp + 0xc]
xor eax, eax
mov word [ebp + 0xc], ax
lea ecx, [ebp + 2]
mov esi, 0x8e
lea ecx, [ecx]
movzx ebx, byte [ecx - 2]
movzx edx, ah
xor edx, ebx
xor ebx, ebx
mov bh, al
add ecx, 6
xor bx, word [esp + edx*2 + 0x10]
movzx eax, bx
movzx ebx, byte [ecx - 7]
movzx edx, ah
xor edx, ebx
xor ebx, ebx
mov bh, al
xor bx, word [esp + edx*2 + 0x10]
movzx eax, bx
movzx ebx, byte [ecx - 6]
movzx edx, ah
xor edx, ebx
xor ebx, ebx
mov bh, al
xor bx, word [esp + edx*2 + 0x10]
movzx eax, bx
movzx ebx, byte [ecx - 5]
movzx edx, ah
xor edx, ebx
xor ebx, ebx
mov bh, al
xor bx, word [esp + edx*2 + 0x10]
movzx eax, bx
movzx ebx, byte [ecx - 4]
movzx edx, ah
xor edx, ebx
xor ebx, ebx
mov bh, al
xor bx, word [esp + edx*2 + 0x10]
movzx eax, bx
movzx ebx, byte [ecx - 3]
movzx edx, ah
xor edx, ebx
xor ebx, ebx
mov bh, al
xor bx, word [esp + edx*2 + 0x10]
sub esi, 1
movzx eax, bx
jne 0x41a900
mov ecx, dword [esp + 0x210]
mov word [ebp + 0xc], di
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
not eax
call fcn.0043a513
add esp, 0x204
ret 4
Function at 0x41b020
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x494f28
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4b8670]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x4b8670]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
lea edi, [esp + 0xc]
mov dword [esp + 0x34], 0
call fcn.0041af40
push 0xc
push str.settings.dat
mov eax, edi
call fcn.0040cf40
mov eax, dword [esp + 0x10]
mov edi, 0x10
cmp dword [esp + 0x24], edi
jae 0x41b097
lea eax, [esp + 0x10]
push 0x4ab6cc
push eax
call fcn.0043bcd8
mov esi, eax
add esp, 8
test esi, esi
je 0x41b257
push esi
push 1
push 0x354
push 0xefa790
call fcn.0043b9ba
push esi
call fcn.0043bd5d
add esp, 0x14
cmp dword [0xefa790], 0x46434557
jne 0x41b257
cmp dword [0xefa794], 2
jne 0x41b257
cmp dword [0xefa798], 0x354
jb 0x41b257
push 0xefa790
call fcn.0041a890
cmp word [0xefa79c], ax
jne 0x41b257
cmp dword [esp + 0x24], edi
mov eax, dword [0xefa8c4]
mov ecx, dword [0xefa8c8]
mov edx, dword [0xefa8cc]
mov dword [0xefa270], eax
mov eax, dword [0xefa8d0]
mov dword [0xefa274], ecx
mov ecx, dword [0xefa8d4]
mov dword [0xefa278], edx
mov edx, dword [0xefa8d8]
mov dword [0xefa27c], eax
mov eax, dword [0xefa8dc]
mov dword [0xefa280], ecx
mov ecx, dword [0xefa8e0]
mov dword [0xefa284], edx
mov edx, dword [0xefa8e4]
mov dword [0xefa288], eax
mov eax, dword [0xefa8e8]
mov dword [0xefa28c], ecx
mov ecx, dword [0xefa8ec]
mov dword [0xefa290], edx
mov edx, dword [0xefa8f0]
mov dword [0xefa294], eax
mov eax, dword [0xefa8f4]
mov dword [0xefa298], ecx
mov ecx, dword [0xefa8f8]
mov dword [0xefa29c], edx
mov edx, dword [0xefa8fc]
mov dword [0xefa2a0], eax
mov eax, dword [0xefa900]
mov dword [0xefa2a4], ecx
mov ecx, dword [0xefa904]
mov dword [0xefa2a8], edx
mov edx, dword [0xefa908]
mov dword [0xefa2ac], eax
mov eax, dword [0xefa90c]
mov dword [0xefa2b0], ecx
mov ecx, dword [0xefa910]
mov dword [0xefa2b4], edx
mov edx, dword [0xefa914]
mov dword [0xefa2b8], eax
mov eax, dword [0xefa918]
mov dword [0xefa2bc], ecx
mov ecx, dword [0xefa91c]
mov dword [0xefa2c0], edx
mov edx, dword [0xefa920]
mov dword [0xefa2c4], eax
mov eax, dword [0x4c0620]
mov dword [0xefa2c8], ecx
mov ecx, dword [0x4c0624]
mov dword [0xefa2cc], edx
mov edx, dword [0x4c0628]
mov dword [0xefa2d0], eax
mov dword [0xefa2d4], ecx
mov dword [0xefa2d8], edx
jb 0x41b253
mov eax, dword [esp + 0x10]
push eax
call fcn.0041cd43
add esp, 4
mov al, 1
jmp 0x41b26c
cmp dword [esp + 0x24], edi
jb 0x41b26a
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041cd43
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0043a513
add esp, 0x2c
ret
Function at 0x41b290
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x494f28
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4b8670]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x4b8670]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
lea edi, [esp + 0xc]
mov dword [esp + 0x34], 0
call fcn.0041af40
mov ecx, dword [esp + 0x10]
mov edi, 0x10
cmp dword [esp + 0x24], edi
jae 0x41b2f9
lea ecx, [esp + 0x10]
call fcn.0041ac60
push 0xc
push str.settings.dat
lea eax, [esp + 0x14]
call fcn.0040cf40
cmp dword [esp + 0x24], edi
mov eax, dword [esp + 0x10]
jae 0x41b31c
lea eax, [esp + 0x10]
push 0x4ab6d0
push eax
call fcn.0043bcd8
mov esi, eax
add esp, 8
test esi, esi
je 0x41b36f
push 0xefa790
mov dword [0xefa790], 0x46434557
mov dword [0xefa798], 0x354
call fcn.0041a890
push esi
push 1
push 0x354
push 0xefa790
mov word [0xefa79c], ax
call fcn.0043bb34
push esi
call fcn.0043bd5d
add esp, 0x14
cmp dword [esp + 0x24], edi
jb 0x41b382
mov eax, dword [esp + 0x10]
push eax
call fcn.0041cd43
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0043a513
add esp, 0x2c
ret
Function at 0x41bf10
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push edi
lea eax, [esp + 0x28]
push eax
call esi
test eax, eax
je 0x41c01e
xor eax, eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call esi
test eax, eax
je 0x41bf51
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
fild qword [esp + 0x38]
fst qword [esp + 0x28]
fmul qword [0x4ab7b0]
call fcn.0043eb16
lea ecx, [esp + 0x20]
push ecx
mov esi, eax
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub edi, esi
sbb eax, ebx
mov dword [esp + 0x44], eax
cpuid
rdtsc
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cpuid
rdtsc
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
xor ecx, ecx
or edx, ecx
mov ecx, dword [esp + 0x1c]
xor esi, esi
or esi, eax
xor eax, eax
xor ebp, ebp
or eax, ebx
or ecx, ebp
sub esi, eax
sbb edx, ecx
mov dword [esp + 0x24], edx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub eax, edi
sbb ecx, dword [esp + 0x44]
test esi, esi
mov dword [esp + 0x20], esi
fild dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
jge 0x41bffe
fadd qword [0x4ab7e0]
fild qword [esp + 0x48]
fdiv qword [esp + 0x28]
fmul qword [0x4ab7d8]
fdivp st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
fld dword [0x4ab7d4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret

Function at 0x41c0a0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x44
push str.GlobalMemoryStatusEx
push 0x4ab704
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c0eb
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x40
call eax
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esi], edx
mov edx, dword [esp + 0x14]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
add esp, 0x44
ret
lea eax, [esp]
push eax
mov dword [esp + 4], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esi], ecx
mov dword [esi + 4], 0
mov dword [esi + 8], edx
mov dword [esi + 0xc], 0
add esp, 0x44
ret
Function at 0x41c790
Capabilities:
Get common file path

Disassembly:
sub esp, 0x318
mov eax, dword [0x4b8670]
xor eax, esp
mov dword [esp + 0x314], eax
push 0
push 0x4ab6a4
mov ecx, esi
call fcn.00407390
lea eax, [esp + 4]
push eax
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x41c849
lea ecx, [esp]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 4]
lea edx, [esp + 0x10c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0
push 0
push 0x104
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x120]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x41c849
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41c831
sub eax, edx
push eax
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00407390
mov ecx, dword [esp + 0x314]
xor eax, eax
cmp eax, dword [esi + 0x14]
sbb eax, eax
xor ecx, esp
neg eax
call fcn.0043a513
add esp, 0x318
ret

Function at 0x41c870
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4b8670]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x114
lea eax, [esp + 4]
push 0
push eax
call fcn.0043d5f0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 5
jae 0x41c8ca
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0043a513
add esp, 0x118
ret
jne 0x41c8ed
xor eax, eax
cmp dword [esp + 8], eax
setne al
add eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0043a513
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
mov eax, 3
call fcn.0043a513
add esp, 0x118
ret
Function at 0x41dab5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4928a8
call fcn.0043da96
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00425504
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41db00
call fcn.00425504
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x41db11
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41db1e
or eax, 0xffffffff
jmp 0x41dc7a
mov ecx, esi
call fcn.0041d5e5
mov dword [ebp - 0x14], eax
call fcn.0042065d
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x41db9c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41db9c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41db9c
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0041d4f9
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41db9c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x41db9c
mov ecx, ebx
call fcn.004235e9
test eax, eax
je 0x41db9c
push 0
mov ecx, ebx
call fcn.00423604
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00422202
push dword [ebp - 0x14]
call fcn.004205b5
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041d8bd
xor edi, edi
cmp eax, edi
je 0x41dbf9
test byte [esi + 0x3c], 0x10
je 0x41dbe3
push 4
pop edi
mov ecx, esi
call fcn.004234d0
test ax, 0x100
je 0x41dbd9
push 5
pop edi
push edi
mov ecx, esi
call fcn.004200e2
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41dbf9
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004237d7
or dword [ebp - 4], 0xffffffff
jmp 0x41dc24
cmp dword [ebp - 0x28], edi
je 0x41dc32
push 1
mov ecx, ebx
call fcn.00423604
cmp dword [ebp - 0x2c], edi
je 0x41dc42
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41dc5b
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x41dc5b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041d61f
cmp dword [esi + 0x58], edi
je 0x41dc77
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0043db3b
ret
Function at 0x423385
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 0x4233c8
call fcn.00425504
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4233c8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4233e3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00422f3f
test ebx, ebx
mov esi, eax
je 0x4233e1
test edi, edi
je 0x4233e1
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x426faa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x426fc0
mov edi, dword [esi + 0xc]
jmp 0x427000
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x426fd9
call fcn.00424207
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x426fee
call fcn.00424207
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x427000
call fcn.00424207
call fcn.00425504
cmp dword [eax + 0x3c], 0
je 0x427015
push edi
mov ecx, ebx
call fcn.00425f00
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00426ec4
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x427033
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x42703f
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x427980
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4b8670]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x4279bd
push 0x4984b8
push 4
push eax
call fcn.0043e1e2
push eax
call fcn.0041dd50
add esp, 0x10
jmp 0x4279cf
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x427a3a
push edi
call fcn.0043de36
mov edi, dword [eax]
call fcn.0043de36
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0043dddc
add esp, 0x18
mov ebx, eax
call fcn.0043de36
cmp dword [eax], 0
je 0x427a1a
call fcn.0043de36
push dword [eax]
call fcn.0041dd77
pop ecx
jmp 0x427a21
call fcn.0043de36
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x427a3a
cmp ebx, esi
jae 0x427a3a
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x427a3c
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043a513
leave
ret
Function at 0x4291c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x429206
call fcn.00425504
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x429206
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x429249
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x429232
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x429232
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x429246
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42abe2
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 0x42ac10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42ac2e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042ab4c
jmp 0x42ac2e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42ac2e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042ab4c
test edi, edi
mov eax, edi
jne 0x42ac18
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4c3468]
test ecx, ecx
je 0x42acf1
jmp 0x42abe1
ret 8

Function at 0x43a513
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b8670]
jne 0x43a51d
repz ret
jmp fcn.00442398
Function at 0x43b71e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x43b75b
cmp dword [ebp + 0x14], edi
je 0x43b75b
cmp ecx, edi
jne 0x43b762
call fcn.0043de36
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043a8ca
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43b776
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43b797
cmp ebx, 0xffffffff
je 0x43b786
push ebx
push edi
push ecx
call fcn.0043d5f0
add esp, 0xc
cmp esi, edi
je 0x43b743
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43b743
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43b7b3
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43b7ba
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43b8ab
test word [esi + 0xc], 0x10c
je 0x43b80e
mov eax, dword [esi + 4]
test eax, eax
je 0x43b80e
jl 0x43b90c
cmp ebx, eax
mov edi, ebx
jb 0x43b7df
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43b8b3
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043a11f
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x43b8a3
cmp ebx, dword [ebp - 0xc]
jb 0x43b87b
cmp dword [ebp - 0xc], 0
je 0x43b838
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43b82d
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43b834
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43b843
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43b843
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43b8df
push eax
push dword [ebp - 8]
push esi
call fcn.00447514
pop ecx
push eax
call fcn.00447417
add esp, 0xc
test eax, eax
je 0x43b91e
cmp eax, 0xffffffff
je 0x43b90c
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43b8a3
push esi
call fcn.00446d36
cmp eax, 0xffffffff
pop ecx
je 0x43b910
cmp dword [ebp - 4], 0
je 0x43b8df
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x43b7c2
mov eax, dword [ebp + 0x14]
jmp 0x43b75d
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43b8ca
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043d5f0
add esp, 0xc
call fcn.0043de36
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43b753
cmp dword [ebp + 0xc], 0xffffffff
je 0x43b8f5
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043d5f0
add esp, 0xc
call fcn.0043de36
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43b753
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43b75d
or dword [esi + 0xc], 0x10
jmp 0x43b910
Function at 0x43f897
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4b8800]
je 0x43f8b2
inc edi
cmp edi, 0x17
jb 0x43f8a3
cmp edi, 0x17
jae 0x43fa32
push ebp
push 3
call fcn.0044bf43
cmp eax, 1
pop ecx
je 0x43f9fe
push 3
call fcn.0044bf43
test eax, eax
pop ecx
jne 0x43f8e6
cmp dword [0x4b8608], 1
je 0x43f9fe
cmp ebx, 0xfc
je 0x43fa31
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4c3590
push ebp
call fcn.004434b5
add esp, 0xc
test eax, eax
je 0x43f91c
push esi
push esi
push esi
push esi
push esi
call fcn.0043a7ce
add esp, 0x14
push 0x104
mov esi, 0x4c35a9
push esi
push 0
mov byte [0x4c36ad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43f960
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004434b5
add esp, 0xc
test eax, eax
je 0x43f960
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043a7ce
add esp, 0x14
push esi
call fcn.0043e830
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43f9a5
push esi
call fcn.0043e830
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4c38a4
push 0x49a55c
sub ecx, eax
push ecx
push eax
call fcn.0044be90
add esp, 0x14
test eax, eax
je 0x43f9a5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043a7ce
add esp, 0x14
jmp 0x43f9a7
xor esi, esi
push 0x49a558
push ebx
push ebp
call fcn.0044be1f
add esp, 0xc
test eax, eax
je 0x43f9c7
push esi
push esi
push esi
push esi
push esi
call fcn.0043a7ce
add esp, 0x14
push dword [edi*8 + 0x4b8804]
push ebx
push ebp
call fcn.0044be1f
add esp, 0xc
test eax, eax
je 0x43f9e9
push esi
push esi
push esi
push esi
push esi
call fcn.0043a7ce
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044bc62
add esp, 0xc
jmp 0x43fa31
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43fa31
cmp ebp, 0xffffffff
je 0x43fa31
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4b8804]
push dword [esi]
call fcn.0043e830
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret