joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d940
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x459b3c]
push ebx
push ebp
mov ebp, dword [0x459b44]
mov eax, 0x491979d9
imul ebp
push esi
mov eax, ecx
imul eax, eax, 0x426f4
sar edx, 0x11
push edi
mov edi, dword [0x459b58]
mov esi, edx
imul edi, edi, 0x3b76e
shr esi, 0x1f
add esi, edx
add eax, esi
add eax, edi
shl eax, 1
mov ebx, eax
mov eax, 0x89cc5bfb
imul ecx
add edx, ecx
sar edx, 0x10
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x5764ae1b
imul ebp
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, ecx
sub ebx, eax
cmp dword [esp + 0x14], 0x132b600
mov dword [str._r_____r____], ebx
je 0x41d9d1
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
push 0x3e8
call edi
dec esi
jne 0x41d9c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebp, dword [0x459b40]
mov eax, 0x20ab631d
imul ebp
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
mov eax, 0x4c84c1e9
imul ebp
mov eax, dword [esp + 0x14]
sar edx, 0x12
add eax, edx
mov ecx, edx
mov edx, dword [0x459b38]
shr ecx, 0x1f
imul edx, edx, 0xd61e3
add ecx, eax
mov eax, dword [0x459b50]
imul eax, eax, 0x1db98
add ecx, edx
sub ecx, eax
mov eax, 0xf957fd3
imul dword [0x459b54]
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [0x56d96c]
add ecx, esi
add ecx, edi
mov edx, eax
inc eax
test edx, edx
mov dword [0x459b38], ecx
mov dword [0x56d96c], eax
jle 0x41da8c
mov ecx, dword [0x459b50]
mov eax, 0x415373e5
imul ecx, ecx, 0x426f4
imul dword [0x459b3c]
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add ecx, esi
add eax, edx
pop edi
lea ecx, [eax + ecx*2 + 0x84bc4]
pop esi
sub ecx, ebx
pop ebp
mov dword [0x459b3c], ecx
mov eax, 1
pop ebx
ret
mov eax, 0xf6ddfe9
imul ecx, ecx, 0x20dab
imul ebp
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x459b4c]
mov ebx, eax
mov eax, 0xa89b51e5
imul edx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x459b48]
imul edx, edx, 0xbb797
sub eax, ebx
add eax, edx
mov edx, dword [0x459b54]
add eax, ecx
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
sub eax, edx
push 0x41d360
add eax, esi
push 0
lea eax, [eax + edi - 0xd61e3]
push 0
mov dword [0x56d68c], 0
mov dword [0x459b40], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x459b4c]
mov eax, 0x415373e5
imul ecx
imul ecx, ecx, 0x84de8
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x459b58]
sub ecx, eax
imul edx, edx, 0x3b76e
mov eax, dword [0x459b48]
imul eax, eax, 0x20dab
add ecx, edx
mov edx, dword [0x459b44]
add ecx, eax
mov edi, dword [0x459b50]
mov eax, 0x491979d9
imul edx
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [str._r_____r____]
imul edx, edx, 0x70110
add eax, edi
pop edi
add eax, ecx
pop esi
lea eax, [edx + eax - 0xd61e3]
pop ebp
mov dword [0x459b44], eax
mov eax, 1
pop ebx
ret
Function at 0x422d00
Capabilities:
Create thread

Disassembly:
push ecx
mov ecx, dword [0x459b50]
push ebx
mov ebx, dword [0x459b44]
mov eax, 0x491979d9
imul ebx
sar edx, 0x11
mov eax, ecx
imul eax, eax, 0x3eb37
mov dword [esp + 4], eax
push ebp
mov ebp, edx
push esi
push edi
mov edi, dword [0x459b58]
shr ebp, 0x1f
add ebp, edx
mov eax, 0x3da796f7
imul edi
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x10]
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, 0x89c36131
imul edi
mov eax, dword [esp + 0x10]
add edx, edi
sar edx, 0x11
add eax, edx
mov esi, edx
mov edx, edi
imul edi, edi, 0x3b76e
imul edx, edx, 0x9aa75
shr esi, 0x1f
add esi, eax
mov eax, dword [esp + 0x18]
sub esi, edx
cmp eax, 0x132b600
mov dword [0x459b48], esi
je 0x422dea
mov ecx, dword [0x459b3c]
mov eax, ecx
imul eax, eax, 0x426f4
add edi, ebp
add eax, edi
shl eax, 1
mov esi, eax
mov eax, 0x89cc5bfb
imul ecx
add edx, ecx
sar edx, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x5764ae1b
imul ebx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
sub esi, ecx
add eax, edx
sub esi, eax
mov dword [str._r_____r____], esi
mov esi, 0x64
push 0x3e8
call edi
dec esi
jne 0x422dd8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [0x459b54]
imul ecx, ecx, 0x3eb04
mov eax, 0x5764ae1b
imul edx
mov eax, dword [0x459b40]
sar edx, 0x12
imul eax, eax, 0x1db98
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov edx, dword [0x459b4c]
imul edx, edx, 0xd61e3
add ecx, edx
mov edx, dword [0x459b3c]
add ecx, eax
mov eax, 0xf957fd3
imul edx
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [0x56d680]
add ecx, ebx
add ecx, edi
add ecx, ebp
test eax, eax
mov dword [0x459b4c], ecx
jne 0x422f3b
mov ecx, dword [0x459b38]
mov eax, 0x89cc5bfb
imul ecx, ecx, 0x3eb37
imul esi
add edx, esi
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [str._r_____r____]
imul edx, edx, 0x70110
sub ecx, eax
add ecx, edx
mov eax, 0x491979d9
imul esi
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
sub ecx, ebx
add ecx, edi
add ecx, ebp
mov dword [0x459b54], ecx
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x421520
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x459b4c]
mov dword [0x56d670], eax
mov esi, dword [str._r_____r____]
mov eax, 0x415373e5
imul esi, esi, 0x70110
imul ecx
imul ecx, ecx, 0x84de8
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x459b58]
sub ecx, eax
imul edx, edx, 0x3b76e
mov eax, dword [0x459b48]
imul eax, eax, 0x20dab
add ecx, edx
mov edx, dword [0x459b44]
add ecx, eax
add esi, dword [0x459b50]
mov eax, 0x491979d9
imul edx
sar edx, 0x11
mov eax, edx
shr eax, 0x1f
add eax, edx
add esi, ecx
lea ecx, [eax + esi - 0xd61e3]
mov dword [0x56d680], 1
mov dword [0x459b44], ecx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4241de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x424231
call fcn.00444d65
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x424231
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x424227
xor eax, eax
jmp 0x42434a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x424261
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x424261
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x424347
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x42428e
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00423453
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x424347
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4242d7
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4242d7
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4242d1
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00423453
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x424337
and dword [ebp + 0xc], 0
jmp 0x424337
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x424337
push 0xc
call fcn.0043ec67
mov esi, eax
test esi, esi
pop ecx
je 0x424319
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x42431b
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x424332
push dword [ebp - 8]
call fcn.0043a6ba
jmp 0x424337
call fcn.0043a691
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x42429c
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42d58d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042f7dc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42d5b0
test byte [esp + 8], 2
je 0x42d5b0
call fcn.0042f7ca
mov dword [eax], 0xd
call fcn.0042f7d3
mov dword [eax], 5
jmp 0x42d589
xor eax, eax
ret
Function at 0x42d677
Capabilities:
Terminate process

Disassembly:
push 8
push 0x44d5e0
call fcn.0042f648
push 8
call fcn.00431881
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x56f99c], esi
jne 0x42d6ab
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x56f998], esi
mov al, byte [ebp + 0x10]
mov byte [0x56f994], al
cmp dword [ebp + 0xc], edi
jne 0x42d6f5
cmp dword [0x57128c], edi
je 0x42d6e5
mov eax, dword [0x571288]
sub eax, 4
mov dword [0x571288], eax
cmp eax, dword [0x57128c]
jb 0x42d6e5
mov eax, dword [eax]
cmp eax, edi
je 0x42d6c6
call eax
jmp 0x42d6c6
push 0x4560cc
mov eax, 0x4560c4
call fcn.0042d5f5
pop ecx
push 0x4560d8
mov eax, 0x4560d0
call fcn.0042d5f5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x42d726
cmp dword [ebp + 0x10], edi
jne 0x42d734
mov dword [0x56f99c], esi
push dword [ebp + 8]
call fcn.0042d5b3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x42d733
push 8
call fcn.004317cc
pop ecx
ret
call fcn.0042f683
ret

Function at 0x42d9a7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0042d840
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42da42
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x56f95c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x42da42
cmp eax, 1
je 0x42da63
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42da42
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42da0f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42da3e
xor eax, eax
inc eax
jmp 0x42da82
cmp edi, eax
jae 0x42da46
xor eax, eax
jmp 0x42da82
cmp eax, esi
jae 0x42da4d
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x56f95c]
jmp 0x42da66
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e402
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x44d698
call fcn.0042f648
mov edi, 0x94
mov eax, edi
call fcn.0042d840
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x56f95c], ecx
mov eax, dword [esi + 4]
mov dword [0x56f968], eax
mov edx, dword [esi + 8]
mov dword [0x56f96c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x56f960], esi
cmp ecx, 2
je 0x42e462
or esi, 0x8000
mov dword [0x56f960], esi
shl eax, 8
add eax, edx
mov dword [0x56f964], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42e49d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42e49d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42e4b5
cmp eax, 0x20b
je 0x42e4a2
mov dword [ebp - 0x1c], esi
jmp 0x42e4c9
cmp dword [ecx + 0x84], 0xe
jbe 0x42e49d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42e4c3
cmp dword [ecx + 0x74], 0xe
jbe 0x42e49d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004319c2
pop ecx
test eax, eax
jne 0x42e4dd
push 0x1c
call fcn.0042e3de
pop ecx
call fcn.004307fd
test eax, eax
jne 0x42e4ee
push 0x10
call fcn.0042e3de
pop ecx
call fcn.004318b2
mov dword [ebp - 4], esi
call fcn.0043458f
test eax, eax
jge 0x42e507
push 0x1b
call fcn.0042e3b9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x571280], eax
call fcn.0043446d
mov dword [0x56f9a8], eax
call fcn.004343cb
test eax, eax
jge 0x42e52d
push 8
call fcn.0042e3b9
pop ecx
call fcn.00434198
test eax, eax
jge 0x42e53e
push 9
call fcn.0042e3b9
pop ecx
push 1
call fcn.0042d60d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42e554
push eax
call fcn.0042e3b9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0043413b
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42e575
movzx eax, word [ebp - 0x40]
jmp 0x42e578
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00439d5e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42e596
push edi
call fcn.0042d73a
call fcn.0042d75c
jmp 0x42e5c8
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042f683
ret
Function at 0x432551
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x43257f
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x432586
cmp ebx, dword [eax + 4]
jae 0x432586
xor eax, eax
jmp 0x432776
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x432597
xor eax, eax
inc eax
jmp 0x432775
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4325ad
cmp ecx, edx
jae 0x4326f2
cmp dword [eax + 4], 0
je 0x4325b6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43259e
cmp dword [ebp + 8], 0
je 0x4325d8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4326f2
cmp eax, esi
jae 0x4326f2
mov eax, dword [0x56fb38]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4325fd
cmp dword [esi*4 + 0x56fb40], edi
je 0x4326f6
inc esi
cmp esi, eax
jl 0x4325eb
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x432772
cmp dword [ebp - 8], 0x1000000
jne 0x432772
test byte [ebp - 0xc], 0xcc
je 0x43267b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x432772
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x432772
cmp word [eax + 0x18], 0x10b
jne 0x432772
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x432772
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43267b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43267b
test byte [ecx + 0x27], 0x80
jne 0x4326f2
push 1
push 0x56fb80
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x43258f
mov ecx, dword [0x56fb38]
test ecx, ecx
mov edx, ecx
jle 0x4326af
lea eax, [ecx*4 + 0x56fb3c]
cmp dword [eax], edi
je 0x4326af
dec edx
sub eax, 4
test edx, edx
jg 0x4326a3
test edx, edx
jne 0x4326e0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4326bc
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4326d4
lea eax, [edx*4 + 0x56fb40]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4326c2
cmp ecx, 0x10
jge 0x4326e0
inc ecx
mov dword [0x56fb38], ecx
push 0
push 0x56fb80
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x43258f
xor eax, eax
jmp 0x432775
test esi, esi
jle 0x43258f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x56fb80
call ebx
test eax, eax
jne 0x43258f
cmp dword [esi*4 + 0x56fb40], edi
je 0x43274c
mov eax, dword [0x56fb38]
lea esi, [eax - 1]
test esi, esi
jl 0x43273a
cmp dword [esi*4 + 0x56fb40], edi
je 0x432736
dec esi
jns 0x43272a
test esi, esi
jge 0x43274a
cmp eax, 0x10
jge 0x432745
inc eax
mov dword [0x56fb38], eax
lea esi, [eax - 1]
jmp 0x43274c
je 0x432764
xor ecx, ecx
test esi, esi
jl 0x432764
lea eax, [ecx*4 + 0x56fb40]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x432752
push 0
push 0x56fb80
call ebx
jmp 0x43258f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433e27
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x45b4b0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x45bd90]
je 0x433e5c
inc eax
cmp eax, 0x13
jb 0x433e4d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x45bd90]
jne 0x433f82
mov eax, dword [0x56f9b0]
cmp eax, 1
je 0x433f5a
cmp eax, edx
jne 0x433e8c
cmp dword [0x45b4f4], 1
je 0x433f5a
cmp ecx, 0xfc
je 0x433f82
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x433ec2
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00435520
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0042e970
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x433ef6
mov eax, edi
push eax
call fcn.0042e970
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x44d7e0
push edi
call fcn.0042e250
add esp, 0x10
push edi
call fcn.0042e970
push dword [esi + 0x45bd94]
mov ebx, eax
call fcn.0042e970
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0042d840
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00435520
push edi
push ebx
call fcn.00435530
push 0x44a1f0
push ebx
call fcn.00435530
push dword [esi + 0x45bd94]
push ebx
call fcn.00435530
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043601a
add esp, 0x2c
jmp 0x433f82
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x45bd94]
push dword [esi]
call fcn.0042e970
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0042d001
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x43601a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x56fdd0], ebx
push esi
push edi
jne 0x43609a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4360d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44e5fc
push edi
call esi
test eax, eax
mov dword [0x56fdd0], eax
je 0x4360d5
push 0x44e5ec
push edi
call esi
push 0x44e5d8
push edi
mov dword [0x56fdd4], eax
call esi
cmp dword [0x56f95c], 2
mov dword [0x56fdd8], eax
jne 0x43609a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x56fde0], eax
je 0x43609a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x56fddc], eax
mov eax, dword [0x56fddc]
test eax, eax
je 0x4360df
call eax
test eax, eax
je 0x4360c6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x56fde0]
test eax, eax
je 0x4360c6
test byte [ebp - 8], 1
jne 0x4360df
cmp dword [0x56f968], 4
jb 0x4360d9
or byte [ebp + 0x12], 0x20
jmp 0x4360fe
xor eax, eax
jmp 0x43610e
or byte [ebp + 0x12], 4
jmp 0x4360fe
mov eax, dword [0x56fdd4]
test eax, eax
je 0x4360fe
call eax
mov ebx, eax
test ebx, ebx
je 0x4360fe
mov eax, dword [0x56fdd8]
test eax, eax
je 0x4360fe
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x56fdd0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4364fa
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x45b4b0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x43652b
xor eax, eax
jmp 0x4366b4
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x56ff00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x436567
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00437e61
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x436642
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x436680
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x4365cb
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4365bc
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x43659c
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43660b
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x436614
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x43658d
jmp 0x436616
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4366af
cmp dword [ebp - 0x6c], edi
je 0x436680
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x436675
call fcn.0042f7ca
mov dword [eax], 9
call fcn.0042f7d3
mov dword [eax], esi
jmp 0x4366aa
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43666a
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x436616
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x436616
push dword [ebp - 0x6c]
call fcn.0042f7dc
pop ecx
jmp 0x4366aa
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x436698
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x436698
xor eax, eax
jmp 0x4366b2
call fcn.0042f7ca
mov dword [eax], 0x1c
call fcn.0042f7d3
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4366b2
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0042d001
add ebp, 0x3a0
leave
ret