joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412960
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x52073b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x574674]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00451c76
push 4
mov dword [esp + 0x24], 0
call fcn.00418443
mov edi, eax
add esp, 4
test edi, edi
je 0x4129e4
call fcn.00451edc
mov dword [edi], eax
call fcn.00451d10
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00452296
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4129d9
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004522b7
jmp 0x4129e6
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x413fc0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 8], 0
jbe 0x414068
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x414021
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x41404a
mov eax, dword [esi - 4]
push 4
push 0x1000
push edi
add eax, ebx
push eax
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call fcn.00437ec0
jmp 0x414047
mov ecx, dword [esi - 4]
push 4
push 0x1000
push eax
add ecx, ebx
push ecx
call ebp
mov edx, dword [esi]
mov edi, eax
mov eax, dword [esi + 4]
add eax, dword [esp + 0x18]
push edx
push eax
push edi
call fcn.00439cb0
mov dword [esi - 8], edi
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [esp + 0x10]
movzx ecx, word [edx + 6]
add eax, 1
add esi, 0x28
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x413ff2
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x414070
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax]
movzx ecx, word [ebx + 0x14]
push ebp
xor ebp, ebp
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x414127
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4140c5
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41410d
test eax, 0x4000000
lea ecx, [edx + ecx*2]
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x57e5c8]
je 0x4140df
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4140fa
test al, 0x40
je 0x4140f1
mov ecx, dword [ebx + 0x20]
jmp 0x4140f8
test al, al
jns 0x41410d
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x41410d
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
add ebp, 1
add edi, 0x28
cmp ebp, eax
jl 0x414092
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4142d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, dword [esp + 8]
cmp word [ebp], 0x5a4d
je 0x4142e1
xor eax, eax
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
cmp dword [ebx], 0x4550
je 0x4142f4
pop ebx
xor eax, eax
pop ebp
ret
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x34]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x2000
push eax
push ecx
call esi
mov edi, eax
test edi, edi
jne 0x41432b
mov edx, dword [ebx + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
je 0x4143e0
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x50]
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x54]
push 4
push 0x1000
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebx + 0x54]
add edx, dword [ebp + 0x3c]
mov dword [esp + 0x14], eax
push edx
push ebp
push eax
call fcn.00439cb0
mov eax, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x20]
push esi
add eax, ecx
push ebx
mov dword [esi], eax
push ebp
mov dword [eax + 0x34], edi
call fcn.00413fc0
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x4143ad
push eax
mov eax, esi
call fcn.00414130
add esp, 4
push esi
call fcn.004141b0
add esp, 4
test eax, eax
je 0x4143db
push esi
call fcn.00414070
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
add esp, 4
test eax, eax
je 0x4143ee
add eax, edi
je 0x4143db
push 0
push 1
push edi
call eax
test eax, eax
jne 0x4143e7
call fcn.004144a0
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
ret
mov dword [esi + 0x10], 1
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x4148c0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x521c7b
mov eax, dword fs:[0]
push eax
push ebp
push edi
mov eax, dword [0x574674]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1c]
push 0x54
call fcn.00418443
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x414908
push eax
call fcn.00414530
jmp 0x41490a
xor eax, eax
mov ecx, ebp
mov dword [esp + 0x14], 0xffffffff
mov dword [esi + 0x44], eax
lea edi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x414920
sub ecx, edi
push ecx
push ebp
lea ecx, [eax + 8]
call fcn.00404d20
mov eax, dword [esi + 0x44]
mov dword [eax + 4], 0
mov ecx, dword [esi + 0x44]
push 9
push str.GET_test1
add ecx, 0x34
call fcn.00404d20
lea ecx, [esi + 0x14]
push ecx
push 0
push esi
push 0x4149a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x18], eax
je 0x414986
cmp eax, 0xffffffff
je 0x414986
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0xc
ret 4

Function at 0x4155e0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10c
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
push ebp
push esi
push 0x104
mov esi, ecx
lea ecx, [esp + 0x10]
push 0
push ecx
mov dword [esp + 0x14], eax
call fcn.00437ec0
add esp, 0xc
cmp dword [esi + 0x18], 8
lea ebp, [esi + 4]
jb 0x415625
mov eax, dword [ebp]
jmp 0x415627
mov eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 1
call edi
cmp dword [esi + 0x18], 8
jb 0x41564a
mov ecx, dword [ebp]
jmp 0x41564c
mov ecx, ebp
xor ebp, ebp
push ebp
push ebp
push eax
lea edx, [esp + 0x1c]
push edx
push 0xffffffffffffffff
push ecx
push ebp
push 1
call edi
mov eax, dword [esp + 0xc]
mov edi, dword [ebx + 4]
push eax
lea edx, [esp + 0x14]
call fcn.004153f0
mov esi, dword [ebx + 4]
lea ecx, [esp + 0xc]
push ecx
push ebp
push esi
push 0x415370
push ebp
push ebp
mov dword [esp + 0x24], ebp
call fcn.0043b771
add esp, 0x18
cmp eax, ebp
mov dword [esi + 0x10], eax
pop edi
je 0x4156be
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4156b6
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], ebp
mov eax, dword [ebx + 4]
mov al, byte [eax + 4]
jmp 0x4156c4
mov ecx, dword [ebx + 4]
mov al, byte [ecx + 4]
jmp 0x4156c4
mov edx, dword [ebx + 4]
mov al, byte [edx + 4]
mov ecx, dword [esp + 0x110]
pop esi
pop ebp
xor ecx, esp
call fcn.004338df
add esp, 0x10c
ret 4
Function at 0x4156e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5210f8
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x624], eax
push ebx
push ebp
push edi
mov eax, dword [0x574674]
xor eax, esp
push eax
lea eax, [esp + 0x638]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esi], ebx
mov eax, 7
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x10], esi
mov word [esi + 0xc], bx
lea edi, [esi + 0x24]
mov dword [esp + 0x640], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov word [edi + 4], bx
mov dword [esi + 0x58], eax
mov dword [esi + 0x54], ebx
mov word [esi + 0x44], bx
lea ecx, [esi + 0x5c]
mov byte [esp + 0x640], 2
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x5674da
mov byte [ecx + 4], bl
call fcn.00404d20
push ebx
mov byte [esp + 0x644], 3
call fcn.00436785
push eax
call fcn.005091cf
push 0x20a
lea eax, [esp + 0x22]
push ebx
push eax
mov word [esp + 0x28], bx
call fcn.00437ec0
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x415841
push 0x410
lea edx, [esp + 0x226]
push ebx
push edx
mov word [esp + 0x22a], bx
mov word [esp + 0x22c], bx
call fcn.00437ec0
add esp, 0xc
push 0x208
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x41581e
cmp eax, ebx
je 0x41581e
lea edx, [esp + 0x220]
push edx
mov ecx, edi
mov word [esp + eax*2 + 0x224], bx
call fcn.004062f0
jmp 0x415841
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x415825
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.00402110
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x415878
lea ebp, [eax - 1]
cmp ebp, dword [edi + 0x14]
jbe 0x415855
call fcn.00433dda
cmp dword [edi + 0x18], 8
jb 0x415860
mov eax, dword [edi + 4]
jmp 0x415863
lea eax, [edi + 4]
cmp word [eax + ebp*2], 0x5c
je 0x415878
push 1
push 0x566fd4
mov ecx, edi
call fcn.00402010
cmp dword [esi + 0x38], ebx
jne 0x41588b
push 3
push 0x5684c4
mov ecx, edi
call fcn.00402110
mov eax, esi
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x638]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.004338df
add esp, 0x634
ret
Function at 0x4171b0
Capabilities:
Get http content length

Disassembly:
mov eax, dword [eax + 4]
sub esp, 8
test eax, eax
je 0x4171ef
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push 0x20000005
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4171ef
mov eax, dword [esp]
xor edx, edx
add esp, 8
ret
xor eax, eax
xor edx, edx
add esp, 8
ret

Function at 0x41809d
Capabilities:
Create thread

Disassembly:
mov eax, dword [ecx + 0x300]
cmp eax, 0xffffffff
je 0x4180b1
cmp eax, 1
je 0x4180b1
or eax, 0xffffffff
ret
xor eax, eax
push eax
push eax
push ecx
push 0x417e52
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret

Function at 0x4180d7
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x450
lea ebp, [esp - 4]
mov eax, dword [0x574674]
xor eax, ebp
mov dword [ebp + 0x450], eax
push 8
mov eax, 0x51f427
call fcn.00439a12
mov edi, dword [ebp + 0x45c]
xor ebx, ebx
cmp edi, ebx
jne 0x41812e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x450]
xor ecx, ebp
call fcn.004338df
add ebp, 0x454
leave
ret 4
mov esi, 0xff
push esi
lea eax, [ebp + 0x351]
push ebx
push eax
mov byte [ebp + 0x350], bl
call fcn.00437ec0
lea eax, [ebp + 0x350]
push edi
push eax
call fcn.0043a310
push edi
mov dword [ebp - 0x14], ebx
call fcn.004395c0
add esp, 0x18
push 0x583a90
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.00405550
push esi
lea eax, [ebp + 0x251]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp + 0x250], bl
call fcn.00437ec0
lea eax, [ebp + edi + 0x350]
add esp, 0xc
cmp byte [eax - 1], 0x5c
je 0x418199
mov byte [eax], 0x5c
cmp byte [ebp + 0x350], bl
je 0x418211
mov esi, dword [ebp - 0x14]
mov al, byte [ebp + esi + 0x350]
cmp al, 0x3a
jne 0x4181b3
inc esi
inc esi
jmp 0x418205
cmp al, 0x5c
jne 0x418204
push esi
lea eax, [ebp + 0x350]
push eax
lea eax, [ebp + 0x250]
push eax
call fcn.00439cb0
add esp, 0xc
lea eax, [ebp + 0x250]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp + esi + 0x250], bl
call fcn.00419050
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x418204
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x418214
inc esi
cmp byte [ebp + esi + 0x350], bl
mov dword [ebp - 0x14], esi
jne 0x4181a1
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004053e0
mov eax, ebx
jmp 0x418109
Function at 0x418999
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x574674]
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 0x4189d6
push 0x524608
push 4
push eax
call fcn.0043b4bf
push eax
call fcn.00405770
add esp, 0x10
jmp 0x4189e8
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x418a53
push edi
call fcn.0043b566
mov edi, dword [eax]
call fcn.0043b566
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.004339a0
add esp, 0x18
mov ebx, eax
call fcn.0043b566
cmp dword [eax], 0
je 0x418a33
call fcn.0043b566
push dword [eax]
call fcn.00418930
pop ecx
jmp 0x418a3a
call fcn.0043b566
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x418a53
cmp ebx, esi
jae 0x418a53
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x418a55
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004338df
leave
ret
Function at 0x41a55a
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 0x41a5a0
call fcn.0041ba19
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41a5a0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41a5e3
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 0x41a5cc
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 0x41a5cc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41a5e0
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 0x4213e9
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 0x42142c
call fcn.0041ba19
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42142c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x421447
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00420fa3
test ebx, ebx
mov esi, eax
je 0x421445
test edi, edi
je 0x421445
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x424108
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 0x424136
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x424154
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00424072
jmp 0x424154
mov eax, dword [esi + 0x14]
test eax, eax
je 0x424154
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00424072
test edi, edi
mov eax, edi
jne 0x42413e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x580780]
test ecx, ecx
je 0x424217
jmp 0x424107
ret 8

Function at 0x4338df
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x574674]
jne 0x4338e9
repz ret
jmp fcn.0043d584
Function at 0x43a8c0
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 0x43a8fd
cmp dword [ebp + 0x14], edi
je 0x43a8fd
cmp ecx, edi
jne 0x43a904
call fcn.0043b566
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00433db6
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43a918
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43a939
cmp ebx, 0xffffffff
je 0x43a928
push ebx
push edi
push ecx
call fcn.00437ec0
add esp, 0xc
cmp esi, edi
je 0x43a8e5
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43a8e5
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43a955
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43a95c
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43aa4d
test word [esi + 0xc], 0x10c
je 0x43a9b0
mov eax, dword [esi + 4]
test eax, eax
je 0x43a9b0
jl 0x43aaae
cmp ebx, eax
mov edi, ebx
jb 0x43a981
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43aa55
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00433fd5
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 0x43aa45
cmp ebx, dword [ebp - 0xc]
jb 0x43aa1d
cmp dword [ebp - 0xc], 0
je 0x43a9da
mov ecx, accept
xor edx, edx
cmp ebx, ecx
jbe 0x43a9cf
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43a9d6
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43a9e5
mov eax, accept
cmp ebx, eax
ja 0x43a9e5
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43aa81
push eax
push dword [ebp - 8]
push esi
call fcn.00440a2d
pop ecx
push eax
call fcn.0044acf8
add esp, 0xc
test eax, eax
je 0x43aac0
cmp eax, 0xffffffff
je 0x43aaae
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43aa45
push esi
call fcn.00446f5e
cmp eax, 0xffffffff
pop ecx
je 0x43aab2
cmp dword [ebp - 4], 0
je 0x43aa81
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 0x43a964
mov eax, dword [ebp + 0x14]
jmp 0x43a8ff
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43aa6c
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00437ec0
add esp, 0xc
call fcn.0043b566
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43a8f5
cmp dword [ebp + 0xc], 0xffffffff
je 0x43aa97
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00437ec0
add esp, 0xc
call fcn.0043b566
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43a8f5
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43a8ff
or dword [esi + 0xc], 0x10
jmp 0x43aab2
Function at 0x43c30c
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 + 0x574850]
je 0x43c327
inc edi
cmp edi, 0x17
jb 0x43c318
cmp edi, 0x17
jae 0x43c4a7
push ebp
push 3
call fcn.0044b6c3
cmp eax, 1
pop ecx
je 0x43c473
push 3
call fcn.0044b6c3
test eax, eax
pop ecx
jne 0x43c35b
cmp dword [0x574644], 1
je 0x43c473
cmp ebx, 0xfc
je 0x43c4a6
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x580ae8
push ebp
call fcn.0043e307
add esp, 0xc
test eax, eax
je 0x43c391
push esi
push esi
push esi
push esi
push esi
call fcn.00433cba
add esp, 0x14
push 0x104
mov esi, 0x580b01
push esi
push 0
mov byte [0x580c05], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43c3d5
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043e307
add esp, 0xc
test eax, eax
je 0x43c3d5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00433cba
add esp, 0x14
push esi
call fcn.004395c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43c41a
push esi
call fcn.004395c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x580dfc
push 0x527a54
sub ecx, eax
push ecx
push eax
call fcn.00443c84
add esp, 0x14
test eax, eax
je 0x43c41a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00433cba
add esp, 0x14
jmp 0x43c41c
xor esi, esi
push 0x527a50
push ebx
push ebp
call fcn.00443c13
add esp, 0xc
test eax, eax
je 0x43c43c
push esi
push esi
push esi
push esi
push esi
call fcn.00433cba
add esp, 0x14
push dword [edi*8 + 0x574854]
push ebx
push ebp
call fcn.00443c13
add esp, 0xc
test eax, eax
je 0x43c45e
push esi
push esi
push esi
push esi
push esi
call fcn.00433cba
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044b506
add esp, 0xc
jmp 0x43c4a6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43c4a6
cmp ebp, 0xffffffff
je 0x43c4a6
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x574854]
push dword [esi]
call fcn.004395c0
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