joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10221aa6
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x18
mov eax, dword [0x1023904c]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov edi, esi
mov dword [ecx], esi
mov ebp, esi
mov dword [esp + 0xc], esi
cmp ebx, dword [0x10243fc4]
jne 0x10221adf
mov ebp, dword [0x10244fd0]
jmp 0x10221b1c
cmp ebx, 0x800
je 0x10221b1c
push 6
lea eax, [esp + 0x1c]
push eax
push 0x1004
push ebx
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
je 0x10221b0c
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.msvcr100.dll_atoi]
pop ecx
mov ebp, eax
mov eax, dword [esp + 0x10]
mov dword [0x10244fd0], ebp
mov dword [0x10243fc4], ebx
push ebp
lea edx, [esp + 0x10]
mov ecx, eax
call fcn.1000d0e8
test eax, eax
jns 0x10221b37
push eax
call fcn.1009ecbc
jmp 0x10221bd6
mov eax, dword [esp + 0xc]
mov ecx, esi
test eax, eax
je 0x10221b44
mov ecx, dword [eax - 4]
push esi
push esi
push ecx
push eax
push dword [esp + 0x38]
push ebx
call dword [sym.imp.kernel32.dll_LCMapStringA]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10221b6a
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10221bd4
cmp dword [eax - 4], esi
jne 0x10221b9f
jmp 0x10221bbc
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov edi, eax
test edi, edi
jne 0x10221b7c
push 0xe
jmp 0x10221ba1
mov eax, dword [esp + 0xc]
mov ecx, esi
test eax, eax
je 0x10221b89
mov ecx, dword [eax - 4]
push dword [esp + 0x10]
push edi
push ecx
push eax
push dword [esp + 0x38]
push ebx
call dword [sym.imp.kernel32.dll_LCMapStringA]
test eax, eax
jne 0x10221ba4
push 5
pop esi
jmp 0x10221bbc
mov edx, dword [esp + 0x14]
push ebp
mov ecx, edi
call fcn.101b7189
test eax, eax
jns 0x10221bbc
push eax
call fcn.1009ecbc
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10221bca
push eax
call sub.OLEAUT32.dll_SysStringLen
test edi, edi
je 0x10221bd4
push edi
call sub.OLEAUT32.dll_SysStringLen
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10001e57
add esp, 0x18
ret 8
Function at 0x102266a2
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov eax, 0xffff
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov word [esp + 0x14], ax
mov al, byte [esp + 0x1c]
and al, 0xa1
push esi
mov esi, ecx
movzx ebp, word [esi + 0x126]
or al, 0x21
mov ecx, 0xfffe
add word [esi + 0x124], cx
mov ecx, dword [esi + 0x120]
mov byte [esp + 0x20], al
lea eax, [ecx + 2]
mov dword [esi + 0x120], eax
mov dword [esi + 0x10], 1
lea ebx, [esi + 0x98]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov ax, word [ecx]
or byte [esp + 0x21], 4
push edi
mov edi, dword [ebx + 0x14]
mov word [esp + 0x20], ax
lea eax, [edi + 0x28]
sub ebp, 2
mov dword [ebx + 0x14], eax
cmp eax, dword [ebx + 0x18]
jbe 0x10226741
push 0x28
mov ecx, ebx
call fcn.100201da
mov edi, eax
xor eax, eax
mov word [edi + 4], ax
push edi
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov word [edi + 6], bp
call fcn.1004b012
test eax, eax
js 0x102267d5
mov ecx, esi
call fcn.1005047f
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.10054db7
mov ecx, dword [esp + 0x10]
movzx eax, word [ecx + 6]
push eax
push ecx
push edi
mov ecx, ebx
call fcn.10044a5a
mov ebp, eax
mov eax, 0x2c
mov word [ebp], ax
mov eax, 0x200
or word [ebp + 4], ax
push ebp
mov ecx, ebx
call fcn.1004497f
mov edi, dword [ebx + 0x14]
lea eax, [edi + 0x40]
mov dword [ebx + 0x14], eax
cmp eax, dword [ebx + 0x18]
jbe 0x102267ba
push 0x40
mov ecx, ebx
call fcn.100201da
mov edi, eax
push 1
push ebp
mov ecx, esi
mov byte [edi + 0x10], 2
call fcn.10043e36
push edi
mov ecx, esi
mov dword [edi + 0x14], eax
call fcn.1004bbaa
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x10226a5e
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push 0x3fffffff
push 2
mov edi, ecx
call fcn.100574a3
push 2
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.1015692e
mov ecx, edi
mov dword [esp + 0x18], eax
call fcn.1005047f
mov ecx, eax
mov dword [esp + 0x10], ecx
test byte [ecx + 4], 1
movsx eax, word [ecx + 2]
mov dword [esp + 0x14], eax
jne 0x10226ab4
movzx eax, word [ecx + 6]
push eax
push 0x9cb8
mov ecx, edi
call fcn.101f80ed
mov ecx, dword [esp + 0x10]
movsx eax, word [ecx + 2]
sub eax, 0xf
je 0x10226b45
dec eax
je 0x10226b35
dec eax
je 0x10226ad5
push 0xd
mov ecx, edi
call fcn.101f807f
jmp 0x10226b59
push dword [ecx + 8]
mov dword [esp + 0x18], 0x10
call fcn.100ada66
mov ecx, dword [esp + 0x10]
cmp word [ecx], 0x60
mov ebp, eax
jne 0x10226b27
mov ecx, dword [ecx + 0x14]
mov esi, dword [ecx + 8]
call fcn.10046230
mov ecx, eax
cmp ecx, dword [esi + 4]
jbe 0x10226b07
xor eax, eax
jmp 0x10226b0b
mov eax, dword [esi]
add eax, ecx
test byte [eax], 0x40
jne 0x10226b27
mov eax, dword [eax + 0xc]
and eax, 1
je 0x10226b27
push 0x10
push dword [esp + 0x14]
mov ecx, edi
call fcn.10045c65
jmp 0x10226b5d
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.10054db7
jmp 0x10226b5d
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.10054db7
xor ebp, ebp
jmp 0x10226b5d
or dword [esp + 0x28], 0x4000
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.10054db7
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
push dword [eax*4 + 0x10043f50]
mov ecx, edi
call fcn.1015692e
push dword [esp + 0x10]
lea ebx, [edi + 0x98]
push dword [esp + 0x1c]
mov ecx, ebx
mov esi, eax
call fcn.100562c3
push eax
push dword [esp + 0x20]
mov ecx, ebx
call fcn.100562c3
push eax
push esi
mov ecx, ebx
call fcn.100562c3
cmp dword [esp + 0x14], 0x10
mov dword [esp + 0x18], eax
jne 0x10226c01
movzx eax, word [edi + 0x126]
mov esi, dword [ebx + 0x14]
sub eax, 2
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x28]
mov dword [ebx + 0x14], eax
cmp eax, dword [ebx + 0x18]
jbe 0x10226bcd
push 0x28
mov ecx, ebx
call fcn.100201da
mov esi, eax
xor eax, eax
mov word [esi + 4], ax
mov eax, dword [esp + 0x1c]
mov word [esi + 6], ax
push 8
mov eax, 1
push esi
mov ecx, edi
mov word [esi], ax
mov dword [esi + 0x10], ebp
call fcn.10045c65
mov eax, dword [esp + 0x18]
push eax
push esi
mov ecx, ebx
call fcn.100562c3
mov dword [esp + 0x18], eax
movzx ebp, word [edi + 0x126]
mov esi, dword [ebx + 0x14]
lea eax, [esi + 0x28]
sub ebp, 2
mov dword [ebx + 0x14], eax
cmp eax, dword [ebx + 0x18]
jbe 0x10226c24
push 0x28
mov ecx, ebx
call fcn.100201da
mov esi, eax
mov cx, word [esp + 0x28]
mov eax, 0x56
mov word [esi], ax
mov eax, dword [esp + 0x18]
mov word [esi + 4], cx
push esi
mov ecx, ebx
mov word [esi + 6], bp
mov dword [esi + 0x14], eax
call fcn.1004497f
mov ebp, dword [ebx + 0x14]
lea eax, [ebp + 0x40]
mov dword [ebx + 0x14], eax
cmp eax, dword [ebx + 0x18]
jbe 0x10226c61
push 0x40
mov ecx, ebx
call fcn.100201da
mov ebp, eax
push 1
push esi
mov ecx, edi
mov byte [ebp + 0x10], 2
call fcn.10043e36
push ebp
mov ecx, edi
mov dword [ebp + 0x14], eax
call fcn.1004bbaa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x10227287
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.1005047f
mov esi, eax
push esi
mov dword [esp + 0x18], esi
call fcn.10057441
xor ecx, ecx
inc ecx
push 2
pop ebp
test eax, eax
jne 0x102272e4
mov ax, word [esi + 6]
mov word [edi + 0x128], ax
lea eax, [esp + 0x14]
push eax
push ebp
mov ecx, edi
call fcn.10050ef6
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.10050cba
mov ebx, dword [esp + 0x1c]
mov eax, 0xffff
add ebx, ebp
mov word [edi + 0x128], ax
jmp 0x10227300
mov word [esi], cx
mov eax, dword [esp + 0x14]
and dword [eax + 0x10], 0
push 8
push dword [esp + 0x18]
mov ecx, edi
call fcn.10045c65
mov ebx, dword [esp + 0x1c]
mov ecx, edi
call fcn.1005047f
mov esi, eax
push esi
mov dword [esp + 0x14], esi
call fcn.10057441
test eax, eax
jne 0x10227351
mov ax, word [esi + 6]
mov word [edi + 0x128], ax
lea eax, [esp + 0x10]
push eax
push ebp
mov ecx, edi
call fcn.10050ef6
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.10050cba
cmp bx, bp
jae 0x10227343
add ebx, 4
mov eax, 0xffff
mov word [edi + 0x128], ax
jmp 0x1022736b
xor ecx, ecx
inc ecx
mov word [esi], cx
mov eax, dword [esp + 0x10]
mov dword [eax + 0x10], ecx
push 8
push dword [esp + 0x14]
mov ecx, edi
call fcn.10045c65
push dword [esp + 0x10]
lea esi, [edi + 0x98]
push dword [esp + 0x18]
mov ecx, esi
call fcn.100562c3
mov dword [esp + 0x14], eax
xor eax, eax
inc eax
push eax
mov ecx, edi
call fcn.1015692e
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.100c5485
movzx eax, word [edi + 0x126]
sub eax, ebp
push eax
mov ecx, esi
call fcn.10044a41
xor ecx, ecx
mov dword [esp + 0x10], eax
inc ecx
mov word [eax], cx
mov eax, dword [esp + 0x10]
movzx ecx, bx
mov dword [eax + 0x10], ecx
push 6
push dword [esp + 0x14]
mov ecx, edi
call fcn.10045c65
push dword [esp + 0x14]
mov ecx, esi
push dword [esp + 0x14]
call fcn.100562c3
mov dword [esp + 0x14], eax
movzx eax, word [edi + 0x126]
sub eax, ebp
push eax
mov ecx, esi
call fcn.10044a41
mov dword [esp + 0x10], eax
push 0x55
pop ecx
mov word [eax], cx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [edx + 0x14], eax
push dword [esp + 0x10]
mov ecx, esi
call fcn.1004497f
push dword [esp + 0x10]
mov ecx, edi
call fcn.1004bbcb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x1023179a
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x1ac
mov eax, dword [0x1023904c]
xor eax, esp
mov dword [esp + 0x1a8], eax
mov eax, dword [esp + 0x1b4]
push ebp
mov ebp, dword [esp + 0x1b4]
lea ecx, [esp + 4]
push ecx
push eax
push ebp
mov dword [esp + 0x24], eax
call fcn.1015692e
test eax, eax
je 0x102317d9
push 5
pop eax
jmp 0x102318d0
push ebx
push esi
push edi
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x18]
push eax
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push eax
push eax
push eax
xor edi, edi
push edi
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0xdc]
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x50], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [esp + 0x18]
push 1
push edi
mov esi, eax
lea eax, [esp + 0x44]
push eax
lea ecx, [ecx*2 + 2]
push ecx
push edi
push 0x78
lea ecx, [esp + 0x40]
call fcn.1015692e
mov ebx, dword [esp + 0x2c]
test esi, esi
jne 0x102318aa
test ebx, ebx
jne 0x10231856
push 7
jmp 0x102318ac
push ebx
push dword [esp + 0x14]
call fcn.101fc81c
test eax, eax
jne 0x102318aa
mov eax, dword [esp + 0x18]
push edi
push edi
push edi
inc eax
push edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push ebx
push edi
push dword [esp + 0x2c]
call fcn.101fc8d9
test eax, eax
je 0x10231848
cmp eax, 0x103
jne 0x102318aa
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1023189a
lea ecx, [esp + 0x28]
call fcn.1000cead
push 5
pop eax
jmp 0x102318cd
push dword [esp + 0x24]
push ebp
call fcn.1015692e
test eax, eax
jne 0x102318bf
jmp 0x102318c2
push 5
pop edi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x102318c2
test edi, edi
jne 0x102318c2
push 5
pop edi
lea ecx, [esp + 0x28]
call fcn.1000cead
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1ac]
pop ebp
xor ecx, esp
call fcn.10001e57
add esp, 0x1ac
ret 8
Function at 0x1bfb8f7
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 4], edi
lea esp, [esp + 4]
movzx edi, byte [ebp]
push 0x1fbf6b97
sar byte [esp + 3], 0xe4
xor edi, ecx
push 0x96ab2abc
or byte [esp + 3], 0x8a
and edi, 0xff
push 0xfdae2206
push 0xa9235eb7
mov edi, dword [edi*4 + 0x1bb7ebc]
shr ecx, 8
add dword [esp + 9], 0xa5b54f9e
xor ecx, edi
add dword [esp + 8], 0xb82c561a
push 0x3235ea39
inc ebp
xor ecx, 0x3402e48d
dec edx
lea esp, [esp + 0x14]
jne 0x1bfb8ff
pop edi
push 0x6b00dc0b
call fcn.01b8b921
syscall
push 0xde27f313
dec eax
mov dword [esp], 0x8b5fec79
call int.0230313b

Function at 0x225c22b
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 0x10]
jmp fcn.01bfefc0
call fcn.02203159
jmp 0x1ba4391
jns 0x1bc142e
push 0xe803e0bc
adc ebp, 1
rol dword [esp], 0xd0
jb 0x21f5429
or byte [0xb38b1e04], cl
dec edx
add bh, bl
jle 0x225c296
mov edi, 0xbd5c6dd1
lahf
fnstsw word [edi + esi*2 + 0x5de62b1]
lea esp, [ecx + 0x748ef4ac]
and byte [eax], ah
invalid
retf
sbb byte [ecx - 0x6dd45cf1], cl
cmp ch, byte [ebp + 0x21edc685]
or byte [ebp - 0x63], dl
add dword [eax - 0x10], esi
xchg ecx, eax
movsd dword es:[edi], dword [esi]
mov dword [0xcdd2209b], eax
imul ecx, dword [ebp + 6], 0x91f07057
dec ebp
push es
push edi
jo 0x225c2a5
xchg ecx, eax
in eax, 0xb
mov ebx, 0x35fcbd21
add byte [edi + 0x76e758af], 0xf0
dec edi
in al, 0x2d
lds edx, [edx + 0x7a]
fdivr st(0), st(0)
and bl, 0x34
xlatb
add edi, esi
popfd
out 0xc8, al
push ebx
xor al, byte [ebp + 0x6a760328]
loopne 0x225c28c
jge 0x225c33c
mov ch, 0x25
insb byte es:[edi], dx
cdq
mov al, byte [0x1d66790a]
push eax
in eax, 0x73
ljmp 0x7056
inc eax
rcl byte [esi + 0x70], 0xea
test al, 0x95
add dh, byte [eax]
scasd eax, dword es:[edi]
xor eax, 0xd9668fe1
enter 0x326b, 0xfffffffffffffff9
fcmovne st(0), st(2)
xchg edx, ecx
dec esi
adc al, 0x6e
sub byte [edi], al
dec ebx
sub dword [edi], esp
cmp al, 0xa
jns 0x225c2b0
cmpsb byte [esi], byte es:[edi]
lahf
imul ecx, dword [eax], 0xb6a2a201
jb 0x225c306
jmp 0xb4dc926a
push edx
rcr byte [eax + 0x44], 0x26
mov eax, 0xc1a9824
push 0x64ec4ec0
mov ebp, 0x15e63dd0
xchg ah, bh
sar byte [0xfc8615e6], 1
rcl byte [edx + 0x44]
push ecx
xor al, 0xaf
adc al, 0xc2
sub byte [ebp + 0x4d], cl
mov ah, 0x82
cwde
cmp ecx, eax
jp 0x225c3a0
jno 0x225c362
jnp 0x225c34c
push ds
dec ebp
jle 0x225c2ef
std
invalid
ret
Function at 0x4022ba
Capabilities:
Create thread
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x42a040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
push 4
call fcn.00407031
pop ecx
lea ecx, [esp + 0x10]
xor ebx, ebx
push ecx
push ebx
push eax
push 0x4038da
push ebx
push ebx
mov dword [eax], 0x4021ef
call fcn.0040b8bf
add esp, 0x18
mov dword [esp + 0xc], eax
test eax, eax
je 0x402414
call dword [sym.imp.KERNEL32.dll_FreeConsole]
cmp dword [esp + 0x10], ebx
je 0x40241c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esp + 0x10], eax
jne 0x402325
push 5
jmp 0x40241e
push ebx
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.00406a98
add esp, 0xc
test eax, eax
je 0x402341
push 2
jmp 0x40241e
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
xorps xmm0, xmm0
push 0xf
pop esi
movlpd qword [esp + 0xc], xmm0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov byte [esp + 0x1c], bl
call fcn.004026a5
lea edx, [esp + 0x1c]
call fcn.0040292c
cmp dword [esp + 0x2c], ebx
jbe 0x40239c
cmp dword [esp + 0x30], esi
lea edx, [esp + 0x1c]
push dword [esp + 0x2c]
cmova edx, dword [esp + 0x20]
call fcn.004033a0
pop ecx
push eax
call fcn.00402ad3
pop ecx
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GetClipBox]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov eax, dword [esp + 0x30]
cmp eax, esi
jbe 0x4023ee
mov ecx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
cmp eax, 0x1000
jb 0x4023e5
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0040130c
mov eax, dword [esp + 0x1c]
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.00407061
pop ecx
pop ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x10], ebx
jne 0x402423
mov ecx, dword [esp + 0x34]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040701e
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], ebx
push 6
jmp 0x40241e
push 1
call fcn.00403c46
call fcn.0040b950
int3
Function at 0x404cd9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x404cfa
jl 0x404cf1
test edi, edi
jne 0x404cfa
xor eax, eax
xor edx, edx
jmp 0x404dbb
cmp dword [ebx + 0x38], 0
je 0x404d0f
push eax
push edi
push dword [ebp + 8]
call fcn.00404dc1
jmp 0x404dbb
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404d56
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x404d56
cmp eax, edi
jb 0x404d30
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00407e70
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x404d5c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x404db0
mov ecx, ebx
call fcn.00404570
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x404d9b
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040d580
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x404db0
jmp 0x404d6e
test edx, edx
je 0x404db0
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040d580
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x407c4f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407c8e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407c8e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407c8e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407c8e
cmp dword [ecx + 0x74], 0xe
jbe 0x407c8e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x412a48
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423064
push 0x42305c
push str.FlsAlloc
push 0x1e
call fcn.00412875
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412a7c
push dword [ebp + 8]
mov ecx, esi
call dword [0x420174]
call esi
jmp 0x412a82
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412ac6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423074
push 0x42306c
push str.FlsGetValue
push 0x20
call fcn.00412875
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412afd
push dword [ebp + 8]
mov ecx, esi
call dword [0x420174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4147b8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041445a

Function at 0x4147c3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004145e9

Function at 0x414bbd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407dc0
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041364f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x414bff
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x414d5b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041ead0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x475148]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00415d8d
mov ecx, dword [esi*4 + 0x475148]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x414d54
cmp eax, dword [edi + ecx + 0x24]
jne 0x414d54
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414d54
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00415d8d
add esp, 0x14
test edx, edx
jl 0x414d54
jg 0x414cca
test eax, eax
jb 0x414d54
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x414d54
jl 0x414ce4
cmp dword [ebp - 0x1008], eax
ja 0x414d54
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x414d02
test ebx, ebx
je 0x414d3b
cmp ecx, edi
jae 0x414d3b
mov al, byte [ecx]
cmp al, 0xd
jne 0x414d1c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x414d28
cmp byte [ecx + 1], 0xa
jne 0x414d28
inc ecx
jmp 0x414d28
movzx eax, al
movsx eax, byte [eax + 0x42a2f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x414d02
cmp edx, ebx
jne 0x414d02
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x414d59
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040701e
leave
ret
Function at 0x41522b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x475148]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41526b
cmp byte [ebx], 0xa
jne 0x41526b
or byte [eax + edi + 0x28], 4
jmp 0x415270
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41536e
mov al, byte [edx]
cmp al, 0x1a
je 0x415350
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41529f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4152c4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4152ce
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x415281
jmp 0x41536e
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41534b
cmp dword [ebp - 0xc], 0
je 0x41534b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x475148]
test byte [eax + edi + 0x28], 0x48
je 0x415325
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x415310
mov byte [esi], dl
jmp 0x415321
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x475148]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41536e
cmp byte [ebp - 1], 0xa
jne 0x415334
cmp esi, ebx
jne 0x415334
mov byte [esi], 0xa
jmp 0x41536d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415dab
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41536e
mov byte [esi], 0xd
jmp 0x41536d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x475148]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41536a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41536e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret