joyce8/EMBER2024-capa huggingface dataset:
Function at 0x526a40
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x843bf4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x526a53
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x526a94
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x843c9c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x526ac6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x526aca
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x526abb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x526ae8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x526aec
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x526add
xor ecx, ecx
mov eax, 0x843c04
xor ebx, ebx
mov bl, byte [ecx + 0x843cac]
cmp byte [esp + ebx + 0x14], 0
je 0x526b17
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x843cc4]
cmp byte [esp + ebx + 0x14], 0
je 0x526b2e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x526afe
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x526a87
lea edx, [esp + 0x84]
push edx
call fcn.00526b70
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x529597
Capabilities:
Access peb ldr_data

Disassembly:
xor eax, eax
pushal
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov edi, ebx
mov esi, dword [ebx + 0x28]
xor eax, eax
xor edx, edx
mov ecx, dword [esi]
test cx, cx
je 0x5295e4
mov al, cl
cmp al, 0x61
jb 0x5295bf
sub al, 0x20
ror edx, 0xd
add edx, eax
ror edx, 0xd
shr ecx, 0x10
test cx, cx
je 0x5295e4
mov al, cl
cmp al, 0x61
jb 0x5295d7
sub al, 0x20
ror edx, 0xd
add edx, eax
ror edx, 0xd
lea esi, [esi + 4]
jmp 0x5295b0
cmp edx, dword [esp + 0x18]
je 0x5295f4
mov ebx, dword [ebx]
cmp edi, dword [ebx]
jne 0x5295a9
xor eax, eax
jmp 0x5295f7
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x5295ff
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor eax, eax
pushal
mov ebx, ecx
mov eax, dword [ebx + 0x3c]
mov eax, dword [ebx + eax + 0x78]
test eax, eax
je 0x5296e6
lea esi, [ebx + eax]
test edx, 0xffff0000
je 0x5296ec
mov ecx, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
lea edi, [ebx + edi]
mov ebp, dword [edi + ecx*4 - 4]
lea ebp, [ebx + ebp]
xor eax, eax
xor edx, edx
mov al, byte [ebp]
test al, al
je 0x52964b
cmp al, 0x61
jb 0x529643
sub al, 0x20
ror edx, 0xd
add edx, eax
inc ebp
jmp 0x529636
cmp edx, dword [esp + 0x14]
je 0x52965b
dec ecx
jne 0x52962b
xor eax, eax
jmp 0x5296e6
mov edx, dword [esi + 0x24]
lea edx, [ebx + edx]
mov edx, dword [edx + ecx*2 - 2]
and edx, 0xffff
mov eax, dword [esi + 0x1c]
lea eax, [ebx + eax]
mov eax, dword [eax + edx*4]
lea eax, [ebx + eax]
cmp eax, esi
jbe 0x5296e6
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ebx + ecx + 0x7c]
add esi, ecx
cmp eax, esi
jae 0x5296e6
mov ebp, eax
xor eax, eax
xor edx, edx
mov al, byte [ebp]
cmp al, 0x61
jb 0x529697
sub al, 0x20
ror edx, 0xd
add edx, eax
ror edx, 0xd
inc ebp
cmp al, 0x2e
je 0x5296a6
jmp 0x52968e
ror edx, 0xd
add edx, 0x44
ror edx, 0x1a
add edx, 0x4c
ror edx, 0x1a
add edx, 0x4c
ror edx, 0xd
mov ecx, edx
call fcn.00529597
test eax, eax
je 0x5296e6
mov ecx, eax
xor eax, eax
xor edx, edx
mov al, byte [ebp]
test al, al
je 0x5296e1
cmp al, 0x61
jb 0x5296d9
sub al, 0x20
ror edx, 0xd
add edx, eax
inc ebp
jmp 0x5296cc
call fcn.005295ff
mov dword [esp + 0x1c], eax
popal
ret
mov ecx, dword [esi + 0x10]
cmp edx, ecx
jb 0x529704
mov eax, dword [esi + 0x14]
dec eax
cmp edx, eax
ja 0x529704
sub edx, ecx
mov ecx, edx
jmp 0x52965b
xor eax, eax
jmp 0x5296e6

Function at 0x53ad4f
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [0x84fd58]
mov dword [ebp - 8], eax
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x53ad8a
add dword [esp], 5
retf

Function at 0x53b7fd
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [0x84fd58]
mov dword [ebp - 8], eax
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x53b838
add dword [esp], 5
retf
Function at 0x544b6c
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [0x84fd58]
mov dword [ebp - 8], eax
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x544ba7
add dword [esp], 5
retf

Function at 0x544c95
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [0x84fd58]
mov dword [ebp - 8], eax
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x544cd0
add dword [esp], 5
retf

Function at 0x544e0a
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [0x84fd58]
mov dword [ebp - 8], eax
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x544e45
add dword [esp], 5
retf

Function at 0x54533e
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [0x84fd58]
mov dword [ebp - 8], eax
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x545379
add dword [esp], 5
retf

Function at 0x56c140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x56c193
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x56c17a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x572b50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59f71e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00573470
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x823334
call fcn.00591103
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x572be3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00591103
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x572bdc
push 0
mov ecx, eax
call fcn.00569cc0
mov dword [esi + 0xc], eax
jmp 0x572be5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x572be5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x8a1c10
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x8a1d1c
test eax, eax
je 0x8a1d1c
push esi
push edi
mov ecx, 0x10
mov esi, 0x8bcfe8
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x8a1d03
lea edi, [eax + 4]
jmp 0x8a1c67
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x8a1c7c
mov dword [ebp - 4], 2
jmp 0x8a1c9d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x8a1c93
mov dword [ebp - 4], 1
jmp 0x8a1c9d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x8a1d13
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x8a1cd6
mov byte [ecx], 0x3d
jmp 0x8a1ce2
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x8a1ced
mov byte [ecx], 0x3d
jmp 0x8a1cf3
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x8a1c64
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xc8cc82
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0xeb2a77
jne 0xe1485f
sub eax, eax
jmp 0xdf445c
ret 4
mov ecx, dword [eax + 0xc]
cwde
mov ax, 0x2d50
push ecx
bswap ax
rdtsc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
cmovb ecx, edi
jmp 0xc5e329
mov dword [ebp - 0x14], eax
jmp 0xc9049e
jl 0xe360ea
mov edx, dword [ebp - 0x14]
cmovo eax, ebp
cbw
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 0x10]
jmp 0xed0ff1
push ecx
mov cl, ah
setp cl
movsx cx, dh
mov ecx, dword [ebp - 0x18]
call fcn.004d3280
mov dword [ebp - 4], eax
stc
clc
cmp dword [ebp - 4], 0
jmp 0x9551a9
sub eax, 1
jmp 0xa1bd6a
push eax
cdq
cmovnp ax, bp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
setl ah
movzx cx, ah
push edx
movsx ecx, bp
mov eax, dword [ebp + 8]
cmovb cx, di
mov ecx, dword [eax]
jmp 0xb3e865
push ebp
mov ebp, esp
sal edx, 0x68
shl dh, 0xe8
adc ax, 0x317e
sub esp, 0x18
push ebx
movzx eax, bp
movsx edx, si
movzx ax, ah
push esi
cdq
push edi
lahf
movsx eax, bx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
jmp 0x9ddba7
cmp dword [ebp - 0x14], 0
jmp 0xa51b1b
jmp 0xeab936
push esi
btc eax, 0x33
sub dh, 0x1b
rcl ax, 0xbe
push edi
xor edx, 0x56ea3a01
test esi, edx
clc
mov edx, dword [ebp + 8]
and al, 0xfc
test esi, 0x5ec41bcf
cmovae eax, esp
mov eax, dword [edx + 0xc]
clc
cmp ch, 0xa1
jmp 0xc050d4
call dword [ebp - 4]
pop edi
pop esi
mov dword [ebp - 0xc], ebx
or dl, 0xe7
mov dword [ebp - 8], eax
btc dx, bp
and dx, sp
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x1e4], 0
jmp 0xe47274
cmp dword [ebp - 0xc], 0
jmp 0xeab8fc
mov esp, ebp
mov ebp, ecx
not ebp
bswap ebp
pop ebp
jmp 0x9a3565
je 0xeab929
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], 1
movzx dx, ah
not ebx
movsx ebx, bp
mov ecx, dword [ebp + 8]
cdq
mov edx, dword [ebp - 8]
cwde
bswap si
mov dword [ecx + 0x28], edx
mov si, bx
cwde
cbw
mov eax, 1
movsx ebx, ax
mov edi, 0x19bd4e3b
pop edi
cmovl esi, edi
pop esi
seta bl
pop ebx
jmp 0xe4d104
mov ecx, dword [ebp - 0x14]
sub ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0xc9049e
mov dword [ebp - 0x10], ecx
push dword [ebp - 0x10]
jmp 0x8f0249
Function at 0x402b03
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x403268
call fcn.00403068
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x404364
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402b48
cmp eax, esi
jne 0x402b3b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402b4b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402b1f
xor esi, esi
inc esi
cmp dword [0x404368], esi
jne 0x402b5d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402b97
cmp dword [0x404368], ebx
jne 0x402b91
mov dword [0x404368], esi
push 0x4010cc
push 0x4010c0
call fcn.00402c7c
pop ecx
pop ecx
test eax, eax
je 0x402b97
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402c6c
mov dword [0x404014], esi
cmp dword [0x404368], esi
jne 0x402bba
push 0x4010bc
push 0x4010b4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x404368], 2
test edi, edi
jne 0x402bc7
xor eax, eax
mov ecx, 0x404364
xchg dword [ecx], eax
cmp dword [0x40436c], 0
je 0x402bf3
push 0x40436c
call fcn.00402ec0
pop ecx
test eax, eax
je 0x402bf3
push ebx
push 2
push ebx
mov esi, dword [0x40436c]
mov ecx, esi
call dword [0x405140]
call esi
push dword [0x404020]
push dword [0x40401c]
push dword [0x404018]
call fcn.004027bb
add esp, 0xc
mov dword [0x404010], eax
cmp dword [0x404028], 0
jne 0x402c51
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404014], 0
jne 0x402c65
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404010]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00574000
jmp 0x402b03

Function at 0x402da4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x403288
call fcn.00403068
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402e04
cmp eax, 0xffffffff
je 0x402e04
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402dfd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402dfd
cmp edx, 0x10000000
jae 0x402dfd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x402dfa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402e70
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x402eae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x402ea6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x402eb0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x402e96
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5f16b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x158000]
push edi
or ebp, 0xffffffff
jmp 0x5f16d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5f16d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f16c8
mov eax, 1
add ebx, ebx
jne 0x5f16eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5f16fc
jne 0x5f171b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f171b
dec eax
add ebx, ebx
jne 0x5f1708
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5f16e0
add ebx, ebx
jne 0x5f1717
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5f176d
xor ecx, ecx
sub eax, 3
jb 0x5f1733
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5f17a2
sar eax, 1
mov ebp, eax
jmp 0x5f173e
add ebx, ebx
jne 0x5f173e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f170c
inc ecx
add ebx, ebx
jne 0x5f174c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f170c
add ebx, ebx
jne 0x5f1759
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5f174e
jne 0x5f176a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5f174e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5f178c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5f177e
jmp 0x5f16ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5f178c
add edi, ecx
jmp 0x5f16ce
pop esi
mov edi, esi
mov ecx, 0x7eaf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5f17aa
cmp byte [edi], 0x13
jne 0x5f17aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5f17af
lea edi, [esi + 0x1ef000]
mov eax, dword [edi]
or eax, eax
je 0x5f1827
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f1d08]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1f1de4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5f17dc
mov ecx, edi
jns 0x5f180b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1f1de8]
or eax, eax
je 0x5f1821
mov dword [ebx], eax
add ebx, 4
jmp 0x5f17f9
call dword [esi + 0x1f1df8]
mov ebp, dword [esi + 0x1f1dec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5f185b
sub esp, 0xffffff80
jmp 0x50f8d0
Function at 0x1000fd13
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000fd52
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000fd52
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000fd52
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000fd52
cmp dword [ecx + 0x74], 0xe
jbe 0x1000fd52
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100129d2
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 0x10012a6f
push ebx
push esi
call fcn.1001299b
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.1001292f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10012a1c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10012a6e
push edi
push eax
call fcn.1001398d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10012a3c
call fcn.10011474
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10012a6d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001292f
add esp, 0x20
test eax, eax
jne 0x10012a5b
push edi
call fcn.10011474
jmp 0x10012a63
push ebx
call fcn.10011474
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 0x10012cdc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a888
push 0x1001a880
push str.FlsAlloc
push 0x1f
call fcn.10012bf8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012d10
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019150]
call esi
jmp 0x10012d16
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10012d5a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a898
push 0x1001a890
push str.FlsGetValue
push 0x21
call fcn.10012bf8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012d91
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10012d99
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a8a0
push 0x1001a898
push str.FlsSetValue
push 0x22
call fcn.10012bf8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012dd3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10019150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10018460
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001848d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001848d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403420
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4411ad
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x459780]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.004353fb
mov edi, eax
add esp, 4
test edi, edi
je 0x4034bd
push 1
mov dword [ebp - 4], 0
call fcn.00433c48
add esp, 4
mov dword [edi + 4], eax
jmp 0x4034bf
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.00401510
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x40351a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x40351a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x403536
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x403559
cmp byte [ebp + 0xc], 0
je 0x403545
push esi
call fcn.004340de
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x403565
mov esi, str.ios_base::badbit_set
jmp 0x403575
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00403b10
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00401f00
push 0x454b10
lea eax, [ebp - 0x28]
push eax
call sub.msvcrt.dll__CxxThrowException
int3