joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403918
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cad4
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cb05
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41caed
add dl, dl
jne 0x41cb10
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cb61
xor eax, eax
add dl, dl
jne 0x41cb1d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cbfe
add dl, dl
jne 0x41cb2c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cb37
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cb42
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cb4d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cb57
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cafc
mov eax, 1
add dl, dl
jne 0x41cb6f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cb7a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cb66
sub eax, ebx
mov ebx, 1
jne 0x41cbad
mov ecx, 1
add dl, dl
jne 0x41cb93
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cb9e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cb8a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cafc
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cbc4
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cbcf
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cbbb
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cafc
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cc1f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cafc
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41db1c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov eax, dword [eax + 0x78]
add eax, ebx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0xc]
cmp edx, 0xffff
jbe 0x41dba0
test esi, esi
jbe 0x41dbb7
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00408c5c
test eax, eax
jne 0x41db92
mov eax, dword [ebp - 8]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x41dbb7
add dword [ebp - 8], 2
add edi, 4
dec esi
test esi, esi
ja 0x41db6f
jmp 0x41dbb7
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41dbb7
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41e370
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x985981
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00405060
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41e3ab
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41e3c4
lea eax, [ebp - 0xc]
mov edx, dword [0x997db8]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.004050c0
jmp 0x41e3d7
lea eax, [ebp - 0xc]
mov edx, dword [0x997db8]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.004050c0
lea eax, [ebp - 0xc]
mov edx, ebx
sar edx, 1
jns 0x41e3e3
adc edx, 0
mov edx, dword [edx*4 + 0x9968f8]
call fcn.004052b0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0xc]
call fcn.00405294
push eax
call fcn.00406ecc
mov esi, eax
cmp esi, 0xffffffff
je 0x41e553
mov eax, 0x40
call fcn.004035bc
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.004070cc
test eax, eax
je 0x41e546
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41e546
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00407104
mov eax, edi
call fcn.004035ec
mov eax, 0x18
call fcn.004035bc
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.004070cc
test eax, eax
je 0x41e546
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41e546
add eax, 4
cmp byte [ebp - 1], 0
je 0x41e4ea
cmp word [eax], 0x8664
jne 0x41e4ea
mov eax, edi
call fcn.004035ec
mov eax, 0xf0
call fcn.004035bc
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.004070cc
test eax, eax
je 0x41e546
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x41e546
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.0040509c
jmp 0x41e546
cmp byte [ebp - 1], 0
jne 0x41e546
cmp word [eax], 0x14c
jb 0x41e546
cmp word [eax], 0x150
ja 0x41e546
mov eax, edi
call fcn.004035ec
mov eax, 0xe0
call fcn.004035bc
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.004070cc
test eax, eax
je 0x41e546
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x41e546
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.0040509c
mov eax, edi
call fcn.004035ec
push esi
call fcn.00406e84
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.004053c0
jne 0x41e56b
inc ebx
cmp ebx, 0x19
jne 0x41e39d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x985988
lea eax, [ebp - 0xc]
call fcn.00405060
ret
Function at 0x41e828
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
xor ebx, ebx
push 0
push 0
push 0
push edi
call fcn.00407104
push 0
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call fcn.004070cc
test eax, eax
je 0x41e8c5
cmp word [esi], 0x5a4d
jne 0x41e8c5
push 0
push 0
mov eax, dword [esi + 0x3c]
push eax
push edi
call fcn.00407104
push 0
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.004070cc
test eax, eax
je 0x41e8c5
cmp dword [ebp - 0x1c], 0x4550
jne 0x41e8c5
lea edx, [ebp - 0x18]
mov ecx, 0x14
mov eax, dword [ebp + 0xc]
call fcn.004071c8
mov ax, word [ebp - 0x18]
cmp ax, 0x14c
jb 0x41e8c5
cmp ax, 0x150
ja 0x41e8c5
push 0
lea eax, [ebp - 4]
push eax
push 0xe0
mov eax, dword [ebp + 8]
push eax
push edi
call fcn.004070cc
test eax, eax
je 0x41e8c5
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x424270
Capabilities:
Parse pe header

Disassembly:
push ebx
xor ecx, ecx
test edx, edx
je 0x424298
mov ebx, edx
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x424298
add ebx, dword [eax + 0x3c]
mov eax, ebx
cmp dword [eax], 0x4550
jne 0x424298
cmp word [eax + 0x18], 0x20b
sete cl
mov eax, ecx
pop ebx
ret

Function at 0x42429c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, edx
xor ebx, ebx
test esi, esi
je 0x4242f8
mov edi, esi
push 0x40
push edi
call fcn.0040708c
test eax, eax
jne 0x4242f8
cmp word [edi], 0x5a4d
jne 0x4242f8
mov eax, dword [edi + 0x3c]
test eax, eax
jle 0x4242f8
cmp eax, 0x10000
jge 0x4242f8
add esi, eax
push 0x120
push esi
call fcn.0040708c
test eax, eax
jne 0x4242f8
cmp dword [esi], 0x4550
jne 0x4242f8
mov ax, word [esi + 0x18]
cmp ax, 0x10b
je 0x4242f6
cmp ax, 0x20b
jne 0x4242f8
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10001003
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x1000100d
repz ret
jmp fcn.10001260

Function at 0x10001a44
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10001685
push eax
push esi
push dword [ebp + 8]
call fcn.1000163a
invalid
test dword [edi + edi*8 - 1], eax

Function at 0x10001d94
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10001d4c
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10001d6a
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
mov ch, 0x54
invalid
invalid
invalid
cmp eax, dword [ebp - 0x44]
ja 0x10001dc8
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10001daf
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10001db8
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10001dc2
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10001da4
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10001d2e
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10001e15
invalid
dec eax
je 0x10001e0c
sub eax, 3
je 0x10001e03
mov dword [ebp - 4], 0x40
jmp 0x10001e32
mov dword [ebp - 4], 4
jmp 0x10001e18
mov dword [ebp - 4], 0x20
jmp 0x10001e18
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10001e64
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10001de4
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10001675
in eax, 0xc8
hlt
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002549
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
invalid
Function at 0x100036bd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jmp 0x100036c4
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x1000370b
lea eax, [ebp - 0x714]
push eax
call fcn.10001685
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.1000163a
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x10003716
jmp 0x1000371b
jmp 0x10003017

Function at 0x10006438
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100013d8
and dword [ebp - 4], 0
cmp dword [0x1000b5e8], 0
mov ebx, eax
jne 0x100064e9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000659a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000659a
push eax
call fcn.10001366
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1000b5e8], eax
call esi
push eax
call fcn.10001366
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1000b5ec], eax
call esi
push eax
call fcn.10001366
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1000b5f0], eax
call esi
push eax
call fcn.10001366
pop ecx
mov dword [0x1000b5f8], eax
test eax, eax
je 0x100064e9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10001366
pop ecx
mov dword [0x1000b5f4], eax
mov eax, dword [0x1000b5f4]
cmp eax, ebx
je 0x10006541
cmp dword [0x1000b5f8], ebx
je 0x10006541
push eax
call fcn.100013e1
push dword [0x1000b5f8]
mov esi, eax
call fcn.100013e1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10006541
test edi, edi
je 0x10006541
call esi
test eax, eax
je 0x10006538
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10006538
test byte [ebp - 0xc], 1
jne 0x10006541
or dword [ebp + 0x10], 0x200000
jmp 0x1000657a
mov eax, dword [0x1000b5ec]
cmp eax, ebx
je 0x1000657a
push eax
call fcn.100013e1
pop ecx
test eax, eax
je 0x1000657a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000657a
mov eax, dword [0x1000b5f0]
cmp eax, ebx
je 0x1000657a
push eax
call fcn.100013e1
pop ecx
test eax, eax
je 0x1000657a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1000b5e8]
call fcn.100013e1
pop ecx
test eax, eax
je 0x1000659a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000659c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404d00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x404d32
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.004054e0
pop ecx
mov esi, eax
test esi, esi
jne 0x404d65
push 1
call fcn.00404530
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x407288], eax
mov dword [0x40728c], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404da0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test eax, eax
jne 0x404dbb
mov ebx, dword [0x407358]
mov esi, ebx
xor ecx, ecx
jmp 0x404dde
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404dc6
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404dd9
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404dc1
lea eax, [ecx + 1]
push eax
call fcn.004054e0
pop ecx
mov edi, eax
mov dword [0x407294], eax
cmp dword [0x407294], 0
jne 0x404e05
push 1
call fcn.00404530
pop ecx
mov esi, ebx
jmp 0x404e3a
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404e0e
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404e35
mov ecx, edi
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x404e25
pop eax
mov eax, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404e09
mov byte [edi], 0
cmp ebx, dword [0x407358]
je 0x404e51
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x4a5708
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4aef76
push ebx
push esi
call fcn.004aeea2
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004aee36
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4aef23
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4aef75
push edi
push eax
call fcn.004ad9a8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4aef43
call fcn.004ad3f5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4aef74
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004aee36
add esp, 0x20
test eax, eax
jne 0x4aef62
push edi
call fcn.004ad3f5
jmp 0x4aef6a
push ebx
call fcn.004ad3f5
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4b032b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b8a30
push 0x4b8a28
push str.FlsAlloc
push 0x1f
call fcn.004b01ea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b035f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b612c]
call esi
jmp 0x4b0365
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4b03a9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b8a40
push 0x4b8a38
push str.FlsGetValue
push 0x21
call fcn.004b01ea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b03e0
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b612c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4b03e8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b8a48
push 0x4b8a40
push str.FlsSetValue
push 0x22
call fcn.004b01ea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b0422
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4b612c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4b1fc5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x4be100]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b2005
cmp byte [ebx], 0xa
jne 0x4b2005
or byte [edi + eax + 0x28], 4
jmp 0x4b200a
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4b2109
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4b20ec
inc eax
cmp dl, 0xd
je 0x4b2036
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4b205c
cmp eax, ecx
jae 0x4b206a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4b201e
jmp 0x4b2109
push 0
lea eax, [ebp - 0x10]
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 0x4b20e7
cmp dword [ebp - 0x10], 0
je 0x4b20e7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4be100]
test byte [eax + edi + 0x28], 0x48
je 0x4b20c1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4b20ac
mov byte [esi], dl
jmp 0x4b20bd
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4be100]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4b2109
cmp byte [ebp - 1], 0xa
jne 0x4b20d0
cmp esi, ebx
jne 0x4b20d0
mov byte [esi], 0xa
jmp 0x4b2108
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b1dbe
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4b2109
mov byte [esi], 0xd
jmp 0x4b2108
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4be100]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b2106
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b2109
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b2112
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4be100]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b2158
cmp word [ebx], dx
jne 0x4b2158
or byte [eax + edi + 0x28], 4
jmp 0x4b215d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4b22c0
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4b22a0
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4b219e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4b21d4
cmp eax, edx
jae 0x4b21e2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4b2179
jmp 0x4b22c0
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b229b
cmp dword [ebp - 0x18], 0
je 0x4b229b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4be100]
test byte [eax + edi + 0x28], 0x48
je 0x4b2271
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4b2235
mov word [esi], cx
jmp 0x4b226c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4be100]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4be100]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4be100]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4b22c0
pop eax
cmp word [ebp - 4], ax
jne 0x4b2281
cmp esi, ebx
jne 0x4b2281
mov word [esi], ax
jmp 0x4b22bd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004b1dbe
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4b22c0
push 0xd
pop eax
jmp 0x4b227c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4be100]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4b22ba
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4b22c0
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret