joyce8/EMBER2024-capa huggingface dataset:
Function at 0x947f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x95c9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x948002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.0094bdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x948002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.009436e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0094c20b
push 0x10
call fcn.0094c1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x947fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.009381c0
jmp 0x947fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00947b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x947ff0
mov ecx, edi
call fcn.009382c0
push edi
call fcn.0094c1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x948021
inc ebx
cmp ebx, 0x20
jb 0x947f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x949250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x95d808
push 0x94d288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x949329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x949329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0094c1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x949329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x949329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x94932c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00949351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x949d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x949d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x949d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x949d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x949d94
push eax
push esi
call fcn.0094c20b
add esp, 8
pop esi
ret 0x10

Function at 0x949da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x949e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x949e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x962320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0094bdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x949dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x949e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x949ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x949eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x962320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0094bdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x949eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x949e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x94a000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x94a131
push esi
call fcn.0094d145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0093c080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x94a131
push 0
push ebp
call fcn.0093c3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0093c260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x94a08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0093c2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x94a121
push 0x962918
push edi
call fcn.0094b3f0
push eax
push ebx
push esi
call fcn.00949f60
push 0x9628f8
push edi
call fcn.0094b3f0
push eax
push ebx
push esi
call fcn.00949f60
push 0x9628d8
push edi
call fcn.0094b3f0
push eax
push ebx
push esi
call fcn.00949f60
push 0x9628c0
push edi
call fcn.0094b3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00949f60
push 0x9628a0
push edi
call fcn.0094b3f0
push eax
push ebx
push esi
call fcn.00949f60
push 0x962888
push edi
call fcn.0094b3f0
push eax
push ebx
push esi
call fcn.00949f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x94b1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0094b140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0094b140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0094b140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0094b140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x94bbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x94bc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x95d87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x94bc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x94bc52
xor eax, eax
pop esi
leave
ret 4

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401310
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x418
mov eax, dword [0x439560]
push ebx
push ebp
mov ebp, dword [esp + 0x428]
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
mov dword [esp + 0x18], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1c]
push ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push ecx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x18]
push 0x43509c
push edx
call esi
mov edi, dword [esp + 0x434]
lea eax, [esp + 0x18]
push edi
push eax
call esi
lea ecx, [esp + 0x18]
push str..LNK
push ecx
call esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x10]
push edx
push 0x431410
push 1
push 0
push 0x431270
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x40149d
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x431660
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x401493
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x42c]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp + 0x10]
push edi
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [0x439560]
mov ecx, 0x81
mov dword [esp + 0x220], eax
xor eax, eax
lea edi, [esp + 0x224]
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x224]
push ecx
call ebx
lea edx, [esp + 0x220]
push 0x5c
push edx
call fcn.0040fc90
add esp, 8
test eax, eax
je 0x40142b
mov word [eax], 0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x220]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [esp + 0x438]
test eax, eax
je 0x401447
cmp word [eax], 0
je 0x401447
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov eax, dword [esp + 0x43c]
test eax, eax
je 0x40146d
cmp word [eax], 0
je 0x40146d
mov esi, dword [esp + 0x440]
mov ecx, dword [esp + 0x10]
mov esi, dword [esi]
mov edx, dword [ecx]
push esi
push eax
push ecx
call dword [edx + 0x44]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
lea eax, [esp + 0x18]
push eax
push ebp
push 5
push 0x1002
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret
Function at 0x401aac
Capabilities:
Enumerate network shares

Disassembly:
add byte [ebp + 0x53002444], cl
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x230]
push eax
mov eax, dword [esp + 0x22c]
push ecx
mov ecx, dword [esp + 0x22c]
push edx
push eax
push ecx
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
je 0x401aea
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x214
ret 0x10
push 0x8000
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0x4000
call fcn.00422bc3
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x401b2a
push 8
mov dword [esi + 4], 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x214
ret 0x10
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push ebx
push eax
push ecx
call sub.MPR.dll_WNetEnumResourceW
mov dword [esi + 4], eax
mov edx, dword [0x439560]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov ecx, 0x439570
push eax
call fcn.00407890
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jle 0x401b95
lea edi, [ebx + 0x14]
mov ecx, dword [edi]
push 0x43a0b0
push ecx
call fcn.0040fdb0
add esp, 8
test eax, eax
je 0x401bb6
mov eax, dword [esp + 0x10]
inc esi
add edi, 0x20
cmp esi, eax
invalid

Function at 0x401ab2
Capabilities:
Enumerate network shares

Disassembly:
add byte [ebp + 0x53002444], cl
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x230]
push eax
mov eax, dword [esp + 0x22c]
push ecx
mov ecx, dword [esp + 0x22c]
push edx
push eax
push ecx
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
je 0x401aea
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x214
ret 0x10
push 0x8000
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0x4000
call fcn.00422bc3
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x401b2a
push 8
mov dword [esi + 4], 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x214
ret 0x10
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push ebx
push eax
push ecx
call sub.MPR.dll_WNetEnumResourceW
mov dword [esi + 4], eax
mov edx, dword [0x439560]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov ecx, 0x439570
push eax
call fcn.00407890
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jle 0x401b95
lea edi, [ebx + 0x14]
mov ecx, dword [edi]
push 0x43a0b0
push ecx
call fcn.0040fdb0
add esp, 8
test eax, eax
je 0x401bb6
mov eax, dword [esp + 0x10]
inc esi
add edi, 0x20
cmp esi, eax
invalid

Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret
Function at 0x40e6c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
push 0
push pe_nt_image_headers32
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x40e6f5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40e711
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00410170
mov esi, eax
add esp, 4
inc esi
lea edi, [esi + esi]
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x1c]
push 0
mov ebx, eax
push 0
push edi
push ebx
push esi
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x10]
push 0
push eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x20]
not ecx
dec ecx
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push ebp
jne 0x40e791
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8

Function at 0x4114f0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.004115b0
mov eax, dword [0x43c3b0]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x411514
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x43c3ac], 1
mov byte [0x43c3a8], bl
jne 0x41156e
mov ecx, dword [0x43da68]
test ecx, ecx
je 0x41155c
mov esi, dword [0x43da64]
sub esi, 4
cmp esi, ecx
jb 0x41155c
mov eax, dword [esi]
test eax, eax
je 0x411555
call eax
mov ecx, dword [0x43da68]
sub esi, 4
cmp esi, ecx
jae 0x411547
push 0x435074
push 0x43506c
call fcn.004115d0
add esp, 8
push 0x435080
push 0x435078
call fcn.004115d0
add esp, 8
test ebx, ebx
je 0x41158d
call fcn.004115c0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x43c3b0], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4123c0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x43c5f0]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x4123f6
call edi
test eax, eax
je 0x4123e6
mov eax, 1
jmp 0x4123f1
call esi
test eax, eax
je 0x412461
mov eax, 2
mov dword [0x43c5f0], eax
cmp eax, 1
jne 0x412402
call edi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x41246a
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
mov edi, eax
mov eax, dword [0x43c680]
push 0
push 0xffffffffffffffff
push edi
push 1
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x41242d
pop edi
pop esi
pop ebp
pop ebx
ret
lea ecx, [esi + esi]
push ecx
call fcn.00410a10
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x412444
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [0x43c680]
push esi
push ebx
push 0xffffffffffffffff
push edi
push 1
push edx
call ebp
test eax, eax
jne 0x412468
push ebx
call fcn.0040fd40
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x412680
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00413660
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x4361d4], eax
je 0x4126d8
push 0x74
push 1
call fcn.00415ed0
mov esi, eax
add esp, 8
test esi, esi
je 0x4126d8
mov eax, dword [0x4361d4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4126d8
push esi
call fcn.004126e0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x412700
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x4361d4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41276e
push 0x74
push 1
call fcn.00415ed0
mov esi, eax
add esp, 8
test esi, esi
je 0x412764
mov ecx, dword [0x4361d4]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x412764
push esi
call fcn.004126e0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.0040f810
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x4128e0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4361e0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x412904
add eax, 8
inc ebp
cmp eax, 0x436270
jb 0x4128f5
cmp ecx, dword [ebp*8 + 0x4361e0]
jne 0x412aab
mov eax, dword [0x43c354]
cmp eax, 1
je 0x412a6d
test eax, eax
jne 0x412930
cmp dword [0x435f74], 1
je 0x412a6d
cmp ecx, 0xfc
je 0x412aab
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41296b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4129b4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4309c4
add ebx, ecx
push ebx
call fcn.00417020
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4309a4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4361e4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00416f90
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x43d960]
test eax, eax
je 0x412a7e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x412a88
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4361e4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret