joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414270
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b9f0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1a68
call fcn.00426290
mov eax, dword [0x44dc1c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov edi, 1
mov dword [ebp - 4], 0
test esi, esi
je 0x4144b8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4142c2
sub eax, edx
sar eax, 1
je 0x4144b8
push 0x800
push 0
lea eax, [ebp - 0x818]
push eax
call fcn.004260b0
add esp, 0xc
push 0x3ff
push esi
push 0x400
lea ecx, [ebp - 0x818]
push ecx
call fcn.0042400b
lea ecx, [ebp - 0x818]
call fcn.004152e0
mov ecx, 0x4465d4
lea edx, [ebp - 0x818]
call fcn.00415490
push 0x800
push 0
lea edx, [ebp - 0x1818]
push edx
call fcn.004260b0
add esp, 0x1c
lea eax, [ebp - 0x818]
push eax
push str._s.
lea edx, [ebp - 0x1818]
call fcn.004047b0
add esp, 8
lea ecx, [ebp - 0x1a68]
push ecx
lea edx, [ebp - 0x1818]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov ebx, dword [ebp + 0xc]
jmp 0x414370
cmp esi, 0xffffffff
je 0x414487
lea eax, [ebp - 0x1a3c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414382
sub eax, edx
sar eax, 1
cmp eax, 2
jne 0x4143b1
mov eax, 0x2e
cmp word [ebp - 0x1a3c], ax
jne 0x4143b1
cmp word [ebp - 0x1a3a], ax
je 0x41446a
lea eax, [ebp - 0x1a3c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4143c0
sub eax, edx
sar eax, 1
cmp eax, 1
jne 0x4143e2
cmp word [ebp - 0x1a3c], 0x2e
je 0x41446a
push 0x800
push 0
lea eax, [ebp - 0x1018]
push eax
call fcn.004260b0
add esp, 0xc
lea ecx, [ebp - 0x1a3c]
push ecx
lea edx, [ebp - 0x818]
push edx
push str._s_s
lea edx, [ebp - 0x1018]
call fcn.004047b0
add esp, 0xc
test byte [ebp - 0x1a68], 0x10
je 0x41445f
test bl, bl
je 0x41445f
push ebx
lea eax, [ebp - 0x1018]
push eax
call fcn.00414270
add esp, 8
mov edi, eax
mov dword [ebp - 0x1a6c], edi
test edi, edi
je 0x41446a
lea ecx, [ebp - 0x1018]
push ecx
push str.Delete_Directory_:__s_
mov ecx, edi
mov edx, 0x45a600
call fcn.00412400
add esp, 8
jmp 0x41446a
lea ecx, [ebp - 0x1018]
call fcn.004140b0
lea edx, [ebp - 0x1a68]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x414370
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x4144af
lea ecx, [ebp - 0x818]
push ecx
call fcn.00414530
add esp, 4
mov edi, eax
mov dword [ebp - 0x1a6c], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x414507
mov eax, 0x57
jmp 0x414509
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042397a
mov esp, ebp
pop ebp
ret
Function at 0x4148e0
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00426290
push 0xffffffffffffffff
push 0x43b8d0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x44dc1c]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov esi, edx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x414a6c
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x414940
sub eax, edx
sar eax, 1
je 0x414a6c
cmp esi, edi
je 0x414a6c
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x414962
sub eax, edx
sar eax, 1
je 0x414a6c
push 0x5c
push esi
call fcn.00424764
add esp, 8
mov edi, eax
test edi, edi
jne 0x41499d
mov dword [ebp - 0x1c], 0x57
push 0x4499d0
lea eax, [ebp - 0x1c]
push eax
call fcn.0042623c
mov ecx, edi
sub ecx, esi
sar ecx, 1
push ecx
push esi
push 0x400
lea edx, [ebp]
push edx
call fcn.0042400b
push 0x800
push 0
lea eax, [ebp + 0x800]
push eax
call fcn.004260b0
add esp, 0x1c
lea ecx, [ebp + 0x800]
push ecx
push 0
push edi
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4149f5
push esi
push str._s.tmp
lea edx, [ebp + 0x800]
call fcn.004047b0
add esp, 8
push 1
lea eax, [ebp + 0x800]
push eax
push esi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call edi
test eax, eax
je 0x414a34
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x414a28
push 4
push 0
lea ecx, [ebp + 0x800]
push ecx
call edi
jmp 0x414a3d
push 1
push esi
lea edx, [ebp + 0x800]
push edx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0042397a
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x414a47
Function at 0x414ab0
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00426290
push 0xffffffffffffffff
push 0x43b8a0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44dc1c]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x414c36
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x414b07
sub eax, edx
sar eax, 1
je 0x414c36
push 0x5c
push edi
call fcn.00424764
add esp, 8
mov esi, eax
cmp esi, ebx
je 0x414c36
push 0x800
push ebx
lea eax, [ebp]
push eax
call fcn.004260b0
add esp, 0xc
lea ecx, [ebp]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x414b6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push 0x4499d0
lea edx, [ebp - 0x1c]
push edx
call fcn.0042623c
push 0x800
push ebx
lea eax, [ebp + 0x800]
push eax
call fcn.004260b0
add esp, 0xc
lea ecx, [ebp + 0x800]
push ecx
push ebx
add esi, 2
push esi
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x414bb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0x4499d0
lea eax, [ebp - 0x24]
push eax
call fcn.0042623c
push 3
lea ecx, [ebp + 0x800]
push ecx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
test eax, eax
jne 0x414be0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push 0x4499d0
lea edx, [ebp - 0x20]
push edx
call fcn.0042623c
push 4
push ebx
lea eax, [ebp + 0x800]
push eax
call esi
test eax, eax
jne 0x414c07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push 0x4499d0
lea ecx, [ebp - 0x18]
push ecx
call fcn.0042623c
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0042397a
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x414c11
Function at 0x414c90
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00426290
push 0xffffffffffffffff
push 0x43b870
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44dc1c]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x100c]
mov dword [ebp - 0x24], eax
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 0x5c
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
cmp edx, edi
je 0x414e75
mov eax, edx
lea esi, [eax + 2]
jmp 0x414d00
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x414d00
sub eax, esi
sar eax, 1
je 0x414e75
push 0x3ff
push edx
push 0x400
lea ecx, [ebp]
push ecx
call fcn.0042400b
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp]
push ecx
call fcn.004244cf
add esp, 0x1c
cmp eax, edi
je 0x414e46
push 0x3ff
push eax
push 0x400
lea edx, [ebp + 0x800]
push edx
call fcn.0042400b
push 0x3ff
push 0x442a24
push 0x400
lea eax, [ebp + 0x800]
push eax
call fcn.00424625
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
push edi
call fcn.004244cf
add esp, 0x2c
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, edi
cmp eax, edi
je 0x414e43
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x414da0
sub ecx, esi
sar ecx, 1
je 0x414e43
push eax
push 0x400
lea eax, [ebp + 0x800]
push eax
call fcn.004249ad
push 0x442a24
push 0x400
lea ecx, [ebp + 0x800]
push ecx
call fcn.004249ad
add esp, 0x18
push edi
lea edx, [ebp + 0x800]
push edx
call ebx
test eax, eax
je 0x414e22
mov ecx, dword [ebp - 0x24]
cmp ecx, edi
je 0x414e0c
mov eax, dword [ebp + 0x1010]
push eax
push 1
lea edx, [ebp + 0x800]
call fcn.00415740
add esp, 8
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.004244cf
add esp, 0xc
jmp 0x414d90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 0xb7
je 0x414e0c
mov dword [ebp - 0x20], eax
push 0x4499d0
lea ecx, [ebp - 0x20]
push ecx
call fcn.0042623c
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0042397a
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x414e50
Function at 0x415050
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b830
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x44dc1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x41512d
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x415095
sub eax, edx
sar eax, 1
je 0x41512d
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jbe 0x415111
push esi
call fcn.00415a30
add esp, 4
mov edi, eax
test edi, edi
je 0x415111
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, 1
jne 0x415108
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x442a24
push edi
call sub.VERSION.dll_VerQueryValueW
cmp eax, 1
jne 0x415108
push 0x34
mov edx, dword [ebp - 0x1c]
push edx
push 0x34
mov eax, dword [ebp + 8]
push eax
call fcn.00423dba
add esp, 0x10
mov dword [ebp - 0x14], 1
push edi
call fcn.00415a35
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416312
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x44dc1c]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x4163b0
push 0x43d95c
push 4
push eax
call fcn.004245b9
push eax
call fcn.00401de0
add esp, 0x10
push ebx
push edi
call fcn.00426066
mov edi, dword [eax]
call fcn.00426066
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00424846
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.00426066
cmp dword [eax], ebx
je 0x4163c7
call fcn.00426066
push dword [eax]
call fcn.00416282
pop ecx
jmp 0x4163ce
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x416361
jmp 0x416440
call fcn.00426066
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x41643c
cmp dword [ebp - 0x40], esi
jae 0x41643c
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.004260b0
add esp, 0xc
push 0x43d6bc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x41642e
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41642e
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x41642e
push ebx
push ebx
push esi
jmp 0x416434
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x41643e
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.0042397a
add ebp, 0x1f4
leave
ret
Function at 0x417acd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x43adca
call fcn.00425c80
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.0041f6af
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x417b18
call fcn.0041f6af
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 0x417b29
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x417b36
or eax, 0xffffffff
jmp 0x417c92
mov ecx, esi
call fcn.004175f2
mov dword [ebp - 0x14], eax
call fcn.0041bfee
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x417bb4
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x417bb4
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x417bb4
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00415add
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x417bb4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x417bb4
mov ecx, ebx
call fcn.0041ec5e
test eax, eax
je 0x417bb4
push 0
mov ecx, ebx
call fcn.0041ec79
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0041d923
push dword [ebp - 0x14]
call fcn.0041bf46
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004178d5
xor edi, edi
cmp eax, edi
je 0x417c11
test byte [esi + 0x3c], 0x10
je 0x417bfb
push 4
pop edi
mov ecx, esi
call fcn.0041eb59
test ax, 0x100
je 0x417bf1
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041badc
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x417c11
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041ece0
or dword [ebp - 4], 0xffffffff
jmp 0x417c3c
cmp dword [ebp - 0x28], edi
je 0x417c4a
push 1
mov ecx, ebx
call fcn.0041ec79
cmp dword [ebp - 0x2c], edi
je 0x417c5a
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x417c73
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x417c73
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.0041762c
cmp dword [esi + 0x58], edi
je 0x417c8f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00425cec
ret
Function at 0x41ea3d
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 0x41ea80
call fcn.0041f6af
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41ea80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41ea9b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041e5f7
test ebx, ebx
mov esi, eax
je 0x41ea99
test edi, edi
je 0x41ea99
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x420698
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 0x4206c6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4206e4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00420602
jmp 0x4206e4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4206e4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00420602
test edi, edi
mov eax, edi
jne 0x4206ce
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x455e08]
test ecx, ecx
je 0x4207a7
jmp 0x420697
ret 8

Function at 0x42397a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44dc1c]
jne 0x423984
repz ret
jmp fcn.00429d66
Function at 0x4250aa
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 0x4250e7
cmp dword [ebp + 0x14], edi
je 0x4250e7
cmp ecx, edi
jne 0x4250ee
call fcn.00426066
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00424479
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x425102
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x425123
cmp ebx, 0xffffffff
je 0x425112
push ebx
push edi
push ecx
call fcn.004260b0
add esp, 0xc
cmp esi, edi
je 0x4250cf
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4250cf
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x42513f
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x425146
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x425237
test word [esi + 0xc], 0x10c
je 0x42519a
mov eax, dword [esi + 4]
test eax, eax
je 0x42519a
jl 0x425298
cmp ebx, eax
mov edi, ebx
jb 0x42516b
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x42523f
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00423dba
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 0x42522f
cmp ebx, dword [ebp - 0xc]
jb 0x425207
cmp dword [ebp - 0xc], 0
je 0x4251c4
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x4251b9
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4251c0
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4251cf
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x4251cf
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x42526b
push eax
push dword [ebp - 8]
push esi
call fcn.0042dfa2
pop ecx
push eax
call fcn.0042dd09
add esp, 0xc
test eax, eax
je 0x4252aa
cmp eax, 0xffffffff
je 0x425298
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x42522f
push esi
call fcn.0042e823
cmp eax, 0xffffffff
pop ecx
je 0x42529c
cmp dword [ebp - 4], 0
je 0x42526b
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 0x42514e
mov eax, dword [ebp + 0x14]
jmp 0x4250e9
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x425256
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004260b0
add esp, 0xc
call fcn.00426066
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4250df
cmp dword [ebp + 0xc], 0xffffffff
je 0x425281
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004260b0
add esp, 0xc
call fcn.00426066
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4250df
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4250e9
or dword [esi + 0xc], 0x10
jmp 0x42529c
Function at 0x428b77
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 + 0x44ddb0]
je 0x428b92
inc edi
cmp edi, 0x17
jb 0x428b83
cmp edi, 0x17
jae 0x428d12
push ebp
push 3
call fcn.00433217
cmp eax, 1
pop ecx
je 0x428cde
push 3
call fcn.00433217
test eax, eax
pop ecx
jne 0x428bc6
cmp dword [0x44dbf8], 1
je 0x428cde
cmp ebx, 0xfc
je 0x428d11
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x456128
push ebp
call fcn.0042c81d
add esp, 0xc
test eax, eax
je 0x428bfc
push esi
push esi
push esi
push esi
push esi
call fcn.0042437d
add esp, 0x14
push 0x104
mov esi, 0x456141
push esi
push 0
mov byte [0x456245], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x428c40
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042c81d
add esp, 0xc
test eax, eax
je 0x428c40
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042437d
add esp, 0x14
push esi
call fcn.0042c890
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x428c85
push esi
call fcn.0042c890
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45643c
push 0x43fd54
sub ecx, eax
push ecx
push eax
call fcn.00433164
add esp, 0x14
test eax, eax
je 0x428c85
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042437d
add esp, 0x14
jmp 0x428c87
xor esi, esi
push 0x43fd50
push ebx
push ebp
call fcn.004330f3
add esp, 0xc
test eax, eax
je 0x428ca7
push esi
push esi
push esi
push esi
push esi
call fcn.0042437d
add esp, 0x14
push dword [edi*8 + 0x44ddb4]
push ebx
push ebp
call fcn.004330f3
add esp, 0xc
test eax, eax
je 0x428cc9
push esi
push esi
push esi
push esi
push esi
call fcn.0042437d
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00432f36
add esp, 0xc
jmp 0x428d11
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x428d11
cmp ebp, 0xffffffff
je 0x428d11
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44ddb4]
push dword [esi]
call fcn.0042c890
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